diff --git a/af_default.c.v b/af_default.c.v index a2c401c..2830da0 100644 --- a/af_default.c.v +++ b/af_default.c.v @@ -1,7 +1,7 @@ module netio /* - Well defined address families. Must work on all platforms. + Common address families. Should work on most platforms. */ pub const af_unspec = AddrFamily(C.AF_UNSPEC) diff --git a/sock_default.c.v b/sock_default.c.v index 7f70e4e..6adbafc 100644 --- a/sock_default.c.v +++ b/sock_default.c.v @@ -1,7 +1,7 @@ module netio /* - Well defined socket types. + Common socket types. */ pub const sock_stream = SocketType(C.SOCK_STREAM) diff --git a/socket.c.v b/socket.c.v index 7b46050..02414f6 100644 --- a/socket.c.v +++ b/socket.c.v @@ -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)! } diff --git a/sol_default.c.v b/sol_default.c.v index 66ff9c1..227b79a 100644 --- a/sol_default.c.v +++ b/sol_default.c.v @@ -1,7 +1,7 @@ module netio /* - Well defined socket levels. + Common socket levels. */ pub const sol_socket = C.SOL_SOCKET