Node - the type of node at the remote endpoint.public class SubSocket<Node extends RemoteNode<Node>>
extends java.lang.Object
Socket| Modifier | Constructor and Description |
|---|---|
protected |
SubSocket(SubSocketFactory<Node> factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(Node node) |
java.io.InputStream |
getInputStream()
Returns an input stream for this SubSocket.
|
java.io.BufferedOutputStream |
getOutputStream()
Returns an output stream for this SubSocket.
|
Principal |
getPrincipal()
Return the Principal that represents the remote endpoint of the connection
|
RemoteIdentity<Node> |
getRemoteIdentity() |
int |
getStreamID() |
java.lang.String |
toString() |
protected SubSocket(SubSocketFactory<Node> factory)
SubSocketFactorypublic final void close()
throws java.io.IOException
java.io.IOExceptionSocket.close()public final void connect(Node node) throws java.io.IOException
java.io.IOExceptionSocket.connect(SocketAddress)public final int getStreamID()
throws java.io.IOException
java.io.IOExceptionpublic final RemoteIdentity<Node> getRemoteIdentity() throws java.io.IOException
java.io.IOExceptionpublic final java.io.BufferedOutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionSocket.getOutputStream()public final java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionSocket.getInputStream()public final Principal getPrincipal() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object