This class represents a server TCP socket.
Defined in: ServerSocket.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jls.net.ServerSocket(port, backlog, bindAddr)
Creates a TCP server socket.
|
| Method Attributes | Method Name and Description |
|---|---|
|
accept()
Listens for a connection to be made to this socket and accepts it.
|
|
|
bind(port, backlog, bindAddr)
Binds the ServerSocket to a specific address (IP address and port number).
|
|
|
close()
Closes this server socket.
|
|
|
configureBlocking(block)
Adjusts this server socket's blocking mode.
|