|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.mina.common.support.BaseIoSession
org.littleshoot.mina.transport.socket.nio.support.DatagramSessionImpl
public class DatagramSessionImpl
An IoSession for datagram transport (UDP/IP).
| Method Summary | |
|---|---|
protected void |
close0()
Implement this method to perform real close operation. |
DatagramChannel |
getChannel()
|
IoSessionConfig |
getConfig()
Returns the configuration of this session. |
IoFilterChain |
getFilterChain()
Returns the filter chain that only affects this session. |
IoHandler |
getHandler()
Returns the IoHandler which handles this session. |
SocketAddress |
getLocalAddress()
Returns the socket address of local machine which is associated with this session. |
SocketAddress |
getRemoteAddress()
Returns the socket address of remote peer. |
IoService |
getService()
Returns the IoService which provides I/O service to this session. |
SocketAddress |
getServiceAddress()
Returns the socket address of the IoService listens to to manage
this session. |
IoServiceConfig |
getServiceConfig()
Returns the IoServiceConfig of this session. |
TransportType |
getTransportType()
Returns transport type of this session. |
protected void |
updateTrafficMask()
Signals the IoService that the TrafficMask of this
session has been changed. |
protected void |
write0(IoFilter.WriteRequest writeRequest)
Implement this method to perform real write operation with the specified writeRequest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.littleshoot.mina.common.BroadcastIoSession |
|---|
write |
| Methods inherited from interface org.littleshoot.mina.common.IoSession |
|---|
close, containsAttribute, getAttachment, getAttribute, getAttributeKeys, getCloseFuture, getCreationTime, getIdleCount, getIdleTime, getIdleTimeInMillis, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getReadBytes, getReadMessages, getScheduledWriteBytes, getScheduledWriteRequests, getTrafficMask, getWriteTimeout, getWriteTimeoutInMillis, getWrittenBytes, getWrittenMessages, getWrittenWriteRequests, isClosing, isConnected, isIdle, removeAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setIdleTime, setTrafficMask, setWriteTimeout, suspendRead, suspendWrite, write |
| Method Detail |
|---|
public IoService getService()
IoSessionIoService which provides I/O service to this session.
getService in interface IoSessionpublic IoServiceConfig getServiceConfig()
IoSessionIoServiceConfig of this session.
getServiceConfig in interface IoSessionpublic IoSessionConfig getConfig()
IoSession
getConfig in interface IoSessionpublic IoFilterChain getFilterChain()
IoSession
getFilterChain in interface IoSessionpublic DatagramChannel getChannel()
public IoHandler getHandler()
IoSessionIoHandler which handles this session.
getHandler in interface IoSessionprotected void close0()
BaseIoSession
close0 in class BaseIoSessionprotected void write0(IoFilter.WriteRequest writeRequest)
BaseIoSessionwriteRequest.
By default, this method is implemented to set the future to
'not written' immediately.
write0 in class BaseIoSessionwriteRequest - Write request to makepublic TransportType getTransportType()
IoSession
getTransportType in interface IoSessionpublic SocketAddress getRemoteAddress()
IoSession
getRemoteAddress in interface IoSessionpublic SocketAddress getLocalAddress()
IoSession
getLocalAddress in interface IoSessionpublic SocketAddress getServiceAddress()
IoSessionIoService listens to to manage
this session. If this session is managed by IoAcceptor, it
returns the SocketAddress which is specified as a parameter of
IoAcceptor.bind(SocketAddress, IoHandler). If this session is
managed by IoConnector, this method returns the same address with
that of IoSession.getRemoteAddress().
getServiceAddress in interface IoSessionprotected void updateTrafficMask()
BaseIoSessionIoService that the TrafficMask of this
session has been changed.
updateTrafficMask in class BaseIoSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||