fabric.common.net
Class SubSocket
java.lang.Object
fabric.common.net.SubSocket
public class SubSocket
- extends java.lang.Object
Client-side multiplexed socket implementation. The API mirrors that of
java.net.Socket. This class manages connection state, and provides a
front-end API.
- Author:
- mdgeorge
- See Also:
Socket
Nested Class Summary |
protected class |
SubSocket.Closed
implementation of methods in the Closed state |
protected class |
SubSocket.Connected
implementation of methods in the Connected(channel) state |
protected class |
SubSocket.ErrorState
implementations of methods in the Error state |
protected class |
SubSocket.State
default implementations of state methods - throws errors or returns default
values as appropriate. |
protected class |
SubSocket.Unconnected
implementation of methods in the Unconnected state |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubSocket
protected SubSocket(SubSocketFactory factory)
- See Also:
SubSocketFactory
close
public final void close()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Socket.close()
connect
public final void connect(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Socket.connect(SocketAddress)
getOutputStream
public final java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Socket.getOutputStream()
getInputStream
public final java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Socket.getInputStream()