This commit is contained in:
ge
2026-04-28 23:18:57 +03:00
parent 7b17a4a33b
commit e54f013ef7
11 changed files with 142 additions and 50 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ pub fn Socket.new(domain AddrFamily, st SocketType, proto Protocol) !Socket {
}
}
// type_of reports the actual socket type.
pub fn (s Socket) type_of() !SocketType {
// type reports the actual socket type.
pub fn (s Socket) type() !SocketType {
return s.get_option_int(C.SOL_SOCKET, C.SO_TYPE)!
}