|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cindy.session.AbstractSession net.sf.cindy.session.nio.AbstractChannelSession net.sf.cindy.session.nio.SocketChannelSession
public class SocketChannelSession
Socket channel session.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.cindy.session.nio.AbstractChannelSession |
---|
AbstractChannelSession.ChannelReactorHandler |
Constructor Summary | |
---|---|
SocketChannelSession()
|
Method Summary | |
---|---|
protected void |
doClose()
|
protected void |
doStart()
|
java.nio.channels.SocketChannel |
getChannel()
Get the socket channel which the session will connected to. |
java.net.SocketAddress |
getLocalAddress()
Get the local address which the session bind with. |
protected ReactorHandler |
getReactorHandler()
Get reactor handler. |
java.net.SocketAddress |
getRemoteAddress()
Get the remote address which the session connmected to. |
SessionType |
getSessionType()
Get session type. |
java.net.Socket |
getSocket()
|
void |
setChannel(java.nio.channels.SocketChannel channel)
Set the socket channel which the session will used. |
Methods inherited from class net.sf.cindy.session.nio.AbstractChannelSession |
---|
close, getReactor, isStarted, send, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketChannelSession()
Method Detail |
---|
public SessionType getSessionType()
Session
public java.net.SocketAddress getLocalAddress()
Session
getLocalAddress
in interface Session
getLocalAddress
in class AbstractSession
public java.net.SocketAddress getRemoteAddress()
Session
getRemoteAddress
in interface Session
getRemoteAddress
in class AbstractSession
public void setChannel(java.nio.channels.SocketChannel channel)
channel
- the scoket channel
java.lang.IllegalStateException
public java.nio.channels.SocketChannel getChannel()
public java.net.Socket getSocket()
protected ReactorHandler getReactorHandler()
AbstractChannelSession
getReactorHandler
in class AbstractChannelSession
protected void doStart() throws java.io.IOException
doStart
in class AbstractChannelSession
java.io.IOException
protected void doClose()
doClose
in class AbstractChannelSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |