| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private int | |
| public static final int | DEFAULT_BACKLOG
Default |
| private int | |
| private ServerRunner | |
| private ServerSocket |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ServerListener | |
| protected ServerRunner | |
| public String | Returns: a string representation of the local addressGets the local address for the listener. |
| public int | |
| protected InetAddress | Returns: anInetAddress representation of the local address.Gets the local address for the listener. |
| public int | |
| protected Runnable | getRunnableTask()
Implements abstract ch. |
| protected ServerSocketFactory | |
| protected void | onStop()
Implements abstract ch. |
| public void | setAddress(String
a host name or a string representation of an IP address address)Sets the local address for the listener. |
| public void | |
| public void | |
| protected boolean | shouldStart()
Implements abstract ch. |
| address | back to summary |
|---|---|
| private String address | |
| backlog | back to summary |
|---|---|
| private int backlog | |
| DEFAULT_BACKLOG | back to summary |
|---|---|
| public static final int DEFAULT_BACKLOG Default | |
| port | back to summary |
|---|---|
| private int port | |
| runner | back to summary |
|---|---|
private ServerRunner<T extends Client> runner
| |
| serverSocket | back to summary |
|---|---|
| private ServerSocket serverSocket | |
| ServerSocketReceiver | back to summary |
|---|---|
| public ServerSocketReceiver() | |
| createServerListener | back to summary |
|---|---|
| protected ServerListener | |
| createServerRunner | back to summary |
|---|---|
protected ServerRunner
| |
| getAddress | back to summary |
|---|---|
| public String getAddress() Gets the local address for the listener.
| |
| getBacklog | back to summary |
|---|---|
| public int getBacklog() Gets the listener queue depth. This represents the number of connected clients whose connections have not yet been accepted.
| |
| getInetAddress | back to summary |
|---|---|
| protected InetAddress getInetAddress() throws UnknownHostException Gets the local address for the listener.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Gets the local port for the listener.
| |
| getRunnableTask | back to summary |
|---|---|
| protected Runnable getRunnableTask() Implements abstract ch. Doc from ch. Provides the runnable task this receiver will execute. | |
| getServerSocketFactory | back to summary |
|---|---|
| protected ServerSocketFactory getServerSocketFactory() throws Exception Gets the server socket factory. Subclasses may override to provide a custom factory.
| |
| onStop | back to summary |
|---|---|
| protected void onStop() Implements abstract ch. Doc from ch. Allows a subclass to participate in receiver shutdown. | |
| setAddress | back to summary |
|---|---|
| public void setAddress(String address) Sets the local address for the listener.
| |
| setBacklog | back to summary |
|---|---|
| public void setBacklog(int backlog) Sets the listener queue depth. This represents the number of connected clients whose connections have not yet been accepted.
| |
| setPort | back to summary |
|---|---|
| public void setPort(int port) Sets the local port for the listener.
| |
| shouldStart | back to summary |
|---|---|
| protected boolean shouldStart() Implements abstract ch. Starts the server.
| |