|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cindy.session.AbstractSession
net.sf.cindy.session.nio.AbstractChannelSession
net.sf.cindy.session.nio.DatagramChannelSession
public class DatagramChannelSession
Datagram channel session.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.cindy.session.nio.AbstractChannelSession |
|---|
AbstractChannelSession.ChannelReactorHandler |
| Constructor Summary | |
|---|---|
DatagramChannelSession()
|
|
| Method Summary | |
|---|---|
protected void |
doClose()
|
protected void |
doStart()
|
java.nio.channels.DatagramChannel |
getChannel()
Get datagram channel associted with the session. |
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.DatagramSocket |
getSocket()
|
void |
setChannel(java.nio.channels.DatagramChannel channel)
Set the datagram 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 DatagramChannelSession()
| Method Detail |
|---|
public java.net.DatagramSocket getSocket()
public SessionType getSessionType()
Session
public java.net.SocketAddress getRemoteAddress()
Session
getRemoteAddress in interface SessiongetRemoteAddress in class AbstractSessionpublic java.net.SocketAddress getLocalAddress()
Session
getLocalAddress in interface SessiongetLocalAddress in class AbstractSessionpublic void setChannel(java.nio.channels.DatagramChannel channel)
channel - datagram channel
java.lang.IllegalStateExceptionpublic java.nio.channels.DatagramChannel getChannel()
protected ReactorHandler getReactorHandler()
AbstractChannelSession
getReactorHandler in class AbstractChannelSession
protected void doStart()
throws java.io.IOException
doStart in class AbstractChannelSessionjava.io.IOExceptionprotected void doClose()
doClose in class AbstractChannelSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||