Returns the port used by this socket.
Throws a SocketException if the socket is closed.
int get port;