Modifier and Type | Method and Description |
---|---|
SerialSessionConfig |
getConfig() |
SerialAddress |
getLocalAddress()
Returns the socket address of local machine which is associated with this
session.
|
SerialAddress |
getRemoteAddress()
Returns the socket address of remote peer.
|
SerialAddress |
getServiceAddress()
Returns the socket address of the
IoService listens to to manage
this session. |
close, close, closeOnFlush, containsAttribute, getAttachment, getAttribute, getAttribute, getAttributeKeys, getBothIdleCount, getCloseFuture, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getFilterChain, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getTrafficMask, getTransportMetadata, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isWriterIdle, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setTrafficMask, suspendRead, suspendWrite, write, write
SerialSessionConfig getConfig()
SerialAddress getRemoteAddress()
IoSession
getRemoteAddress
in interface IoSession
SerialAddress getLocalAddress()
IoSession
getLocalAddress
in interface IoSession
SerialAddress getServiceAddress()
IoSession
IoService
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()
. If this session is managed by
IoConnector
, this method returns the same address with
that of IoSession.getRemoteAddress()
.getServiceAddress
in interface IoSession
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.