seda.sandStorm.lib.aSocket.nbio
Class NBIOFactory

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.aSocketImplFactory
      extended by seda.sandStorm.lib.aSocket.nbio.NBIOFactory

public class NBIOFactory
extends aSocketImplFactory

The NBIO implementation of aSocketImplFactory.


Field Summary
private static boolean DEBUG
           
 
Constructor Summary
NBIOFactory()
           
 
Method Summary
protected  ConnectSockState newConnectSockState(ATcpConnectRequest req, SelectSourceIF selsource)
           
protected  DatagramSockState newDatagramSockState(AUdpSocket sock, java.net.InetAddress addr, int port)
           
protected  ListenSockState newListenSockState(ATcpListenRequest req, SelectSourceIF selsource)
           
protected  SelectQueueElement newSelectQueueElement(java.lang.Object item)
           
protected  SelectSourceIF newSelectSource()
           
protected  SockState newSockState(ATcpConnection conn, java.net.Socket nbsock, int writeClogThreshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

NBIOFactory

public NBIOFactory()
Method Detail

newSelectSource

protected SelectSourceIF newSelectSource()
Specified by:
newSelectSource in class aSocketImplFactory

newSelectQueueElement

protected SelectQueueElement newSelectQueueElement(java.lang.Object item)
Specified by:
newSelectQueueElement in class aSocketImplFactory

newSockState

protected SockState newSockState(ATcpConnection conn,
                                 java.net.Socket nbsock,
                                 int writeClogThreshold)
                          throws java.io.IOException
Specified by:
newSockState in class aSocketImplFactory
Throws:
java.io.IOException

newConnectSockState

protected ConnectSockState newConnectSockState(ATcpConnectRequest req,
                                               SelectSourceIF selsource)
                                        throws java.io.IOException
Specified by:
newConnectSockState in class aSocketImplFactory
Throws:
java.io.IOException

newListenSockState

protected ListenSockState newListenSockState(ATcpListenRequest req,
                                             SelectSourceIF selsource)
                                      throws java.io.IOException
Specified by:
newListenSockState in class aSocketImplFactory
Throws:
java.io.IOException

newDatagramSockState

protected DatagramSockState newDatagramSockState(AUdpSocket sock,
                                                 java.net.InetAddress addr,
                                                 int port)
                                          throws java.io.IOException
Specified by:
newDatagramSockState in class aSocketImplFactory
Throws:
java.io.IOException