seda.sandStorm.lib.aSocket.nio
Class ConnectSockState

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.ConnectSockState
      extended by seda.sandStorm.lib.aSocket.nio.ConnectSockState

public class ConnectSockState
extends ConnectSockState

Internal class used to represent state of a socket while an outgoing connection is pending.


Field Summary
private static boolean DEBUG
           
private  java.nio.channels.SocketChannel nio_sc
           
private static boolean PROFILE
           
private  java.nio.channels.SelectionKey selkey
           
private  NIOSelectSource write_nio_selsource
           
 
Fields inherited from class seda.sandStorm.lib.aSocket.ConnectSockState
clisock, completed, compQ, connectClogTries, connectNumTries, writeClogThreshold
 
Constructor Summary
protected ConnectSockState(ATcpConnectRequest req)
           
  ConnectSockState(ATcpConnectRequest req, SelectSourceIF write_selsource)
           
 
Method Summary
protected  void complete()
           
protected  void error(aSocketErrorEvent error)
           
 
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

PROFILE

private static final boolean PROFILE
See Also:
Constant Field Values

nio_sc

private java.nio.channels.SocketChannel nio_sc

selkey

private java.nio.channels.SelectionKey selkey

write_nio_selsource

private NIOSelectSource write_nio_selsource
Constructor Detail

ConnectSockState

public ConnectSockState(ATcpConnectRequest req,
                        SelectSourceIF write_selsource)
                 throws java.io.IOException
Throws:
java.io.IOException

ConnectSockState

protected ConnectSockState(ATcpConnectRequest req)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

complete

protected void complete()
Specified by:
complete in class ConnectSockState

error

protected void error(aSocketErrorEvent error)
Specified by:
error in class ConnectSockState