ServerSocket
to a specific address (IP address and port number). If the address is null
, then the system will pick up an ephemeral port and a valid local address to bind the socket.
@param endpoint The IP address & port number to bind to.
@throws IOException if the bind operation fails, or if the socketis already bound.
@throws SecurityException if a SecurityManager
is present andits checkListen
method doesn't allow the operation.
@throws IllegalArgumentException if endpoint is aSocketAddress subclass not supported by this socket
@since 1.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|