upd13
This commit is contained in:
@@ -2,7 +2,10 @@ import netio
|
||||
|
||||
fn main() {
|
||||
// Create new TCP socket.
|
||||
mut socket := netio.Socket.new(netio.af_inet, netio.sock_stream, 0)!
|
||||
mut socket := netio.Socket.new(netio.af_inet, netio.sock_stream, 0) or {
|
||||
eprintln('SOCKET: ${err}')
|
||||
exit(1)
|
||||
}
|
||||
|
||||
// Close socket on exit.
|
||||
defer {
|
||||
|
||||
Reference in New Issue
Block a user