v/vlib/net/socket.v

12 lines
173 B
V
Raw Permalink Normal View History

module net
pub struct Socket {
2022-02-22 14:21:20 +01:00
pub:
handle int
}
// address gets the address of a socket
pub fn (s &Socket) address() ?Addr {
return addr_from_socket_handle(s.handle)
}