1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/net/socket.v

12 lines
173 B
V
Raw Normal View History

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