Protocol. See
Net#newClientSocket(Protocol, String, int, SocketHints) and
Net#newServerSocket(Protocol, int, ServerSocketHints).
A socket has an InputStream used to send data to the other end of the connection, and an OutputStream to
receive data from the other end of the connection.
A socket needs to be disposed if it is no longer used. Disposing also closes the connection.
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | |
| public OutputStream | |
| public String | |
| public boolean |
| getInputStream | back to summary |
|---|---|
public InputStream getInputStream()
| |
| getOutputStream | back to summary |
|---|---|
public OutputStream getOutputStream()
| |
| getRemoteAddress | back to summary |
|---|---|
public String getRemoteAddress()
| |
| isConnected | back to summary |
|---|---|
public boolean isConnected()
| |