![]() |
|
Contents |
Public Member Functions | ||||
| HttpServerSocket (int port) throws IOException | ||||
| Creates this socket bound to the specified port. | ||||
| HttpServerSocket (int port, int backlog) throws IOException | ||||
| Creates this socket bound to the specified port, with the specified backlog. | ||||
| Socket | accept () throws IOException | |||
| Retrieve the first connection request and answer the 'host' socket that will conduct further communications with the requesting 'client' socket.
| ||||
| String | toString () | |||
| Answers a string containing a concise, human-readable description of the server socket.
The
| ||||
| HttpServerSocket | ( | int | port | ) | throws IOException |
Creates this socket bound to the specified port.
| port | Port. |
| IOException | If I/O error occurs. |
| HttpServerSocket | ( | int | port, | |
| int | backlog | |||
| ) | throws IOException |
Creates this socket bound to the specified port, with the specified backlog.
| port | Port. | |
| backlog | Backlog. |
| IOException | If I/O error occurs. |
| Socket accept | ( | ) | throws IOException |
Retrieve the first connection request and answer the 'host' socket that will conduct further communications with the requesting 'client' socket.
| IOException | if an error occurs while instantiating the 'host' socket |
Reimplemented from ServerSocket.
| String toString | ( | ) |
Answers a string containing a concise, human-readable description of the server socket.
The port field is reported a zero, as there is no connection formed to the server.
Reimplemented from ServerSocket.