upd3
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@ pub fn Socket.new(domain AddrFamily, typ SocketType, protocol Protocol) !Socket
|
||||
}
|
||||
}
|
||||
|
||||
// typeof reports the actual socket type.
|
||||
pub fn (s Socket) typeof() !SocketType {
|
||||
// type_of reports the actual socket type.
|
||||
pub fn (s Socket) type_of() !SocketType {
|
||||
return s.get_option_int(C.SOL_SOCKET, C.SO_TYPE)!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user