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)
SubSocketFactory
public final void close() throws java.io.IOException
java.io.IOException
Socket.close()
public final void connect(Node node) throws java.io.IOException
java.io.IOException
Socket.connect(SocketAddress)
public final int getStreamID() throws java.io.IOException
java.io.IOException
public final RemoteIdentity<Node> getRemoteIdentity() throws java.io.IOException
java.io.IOException
public final java.io.BufferedOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
Socket.getOutputStream()
public final java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
Socket.getInputStream()
public final Principal getPrincipal() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object