checkListen
method is called with the port
argument as its argument to ensure the operation is allowed. This could result in a SecurityException. 0
creates a socket on any free port. backlog
argument is the requested maximum number of pending connections on the socket. Its exact semantics are implementation specific. In particular, an implementation may impose a maximum length or may choose to ignore the parameter altogther. The value provided should be greater than 0
. If it is less than or equal to 0
, then an implementation specific default will be used. SERVER=DEDICATED
clause in the connect descriptor.