This commit is contained in:
ge
2026-04-01 01:11:06 +03:00
parent b27f835d33
commit 4e43912583
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// import net // import net
import netio import netio
// import time // import time
import os // import os
fn main() { fn main() {
listen_addr := netio.SocketAddr.ipv4([u8(127), 0, 0, 1]!, 1081) listen_addr := netio.SocketAddr.ipv4([u8(127), 0, 0, 1]!, 1081)
-1
View File
@@ -1 +0,0 @@
module netio
+2 -1
View File
@@ -292,7 +292,8 @@ pub fn (a SocketAddr) str() string {
res += ':' res += ':'
} }
} }
return res port_int := binary.big_endian_u16_fixed(port)
return res + ':' + port_int.str()
} }
af_unix { af_unix {
mut path := [max_unix_path_size]u8{} mut path := [max_unix_path_size]u8{}