T.2. sock_t

This structure extends the opaque address descriptor addr_t with a port number:

struct sock_t {
	struct addr_t addr;
	unsigned short port;
};

The following additional methods are available in C++ mode:

// Constructors:
sock_t(unsigned short _port = 0);
sock_t(const sock_t &src);
sock_t(addr_t &src, unsigned short _port);
// Operators:
operator sock_t* ();