port property

int port

Returns the port used by this socket.

Throws a SocketException if the socket is closed.

Implementation

int get port;