A Connector for TCP/IP network connectors
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. Performs the activities needed to close the network communication (for example, to stop accepting network connections). |
| public String | getHost()
Returns: The hostname representing the interface to which this connector will bind, or null for all interfaces. |
| public int | getLocalPort()
Returns: The actual port the connector is listening on, or -1 if it has not been opened, or -2 if it has been closed. |
| public int | |
| public boolean | Returns: True if the connector is Open.A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections) |
| public void | open()
Performs the activities needed to open the network communication (for example, to start accepting incoming network connections). |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Performs the activities needed to close the network communication (for example, to stop accepting network connections). Once a connector has been closed, it cannot be opened again without first callingstop() and it will not be active again until a subsequent call to start()
| |
| getHost | back to summary |
|---|---|
public String getHost()
| |
| getLocalPort | back to summary |
|---|---|
public int getLocalPort()
| |
| getPort | back to summary |
|---|---|
public int getPort()
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections)
| |
| open | back to summary |
|---|---|
| public void open() throws IOException Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
| |