upd5
This commit is contained in:
+2
-2
@@ -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)!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user