This commit is contained in:
ge
2026-04-29 22:48:53 +03:00
parent 31503b721f
commit ee6aaa1e68
+4 -1
View File
@@ -2,7 +2,10 @@ import netio
fn main() { fn main() {
// Create new TCP socket. // 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. // Close socket on exit.
defer { defer {