IoSession.State
readByteBufferChannel, sendByteBufferChannel, SOCKET_IDLE_WHEEL_TIME
Modifier and Type | Method and Description |
---|---|
boolean |
close()
关闭会话
|
protected DatagramChannel |
datagramChannel()
DatagramChannel 对象
|
InetSocketAddress |
getInetSocketAddress() |
protected MessageSplitter |
getMessageSplitter()
获取消息分割处理类
|
boolean |
isConnected()
会话是否打开
|
boolean |
isOpen()
会话是否打开
|
int |
loaclPort()
获取本地端口
|
String |
localAddress()
获取本地 IP 地址
|
String |
remoteAddress()
获取对端 IP 地址
|
int |
remotePort()
获取对端端口
|
void |
setInetSocketAddress(InetSocketAddress inetSocketAddress) |
String |
toString() |
cancelIdle, checkIdle, flush, getAttachment, getEventRunner, getHeartBeat, getIdleInterval, getIdleWheelTimer, getMessageLoader, getReadByteBufferChannel, getSelectionKey, getSendByteBufferChannel, getSocketSelector, getSSLParser, getState, isSSLMode, read, read0, release, send, send0, sendToBuffer, setAttachment, setIdleInterval, setSocketSelector, setSSLParser, socketContext, syncRead, syncSend
attributes, clearAttribute, containAttribute, getAttribute, isModifyed, removeAttribute, setAttribute, setModifyed
public String localAddress()
localAddress
in class IoSession<UdpSocket>
public int loaclPort()
public String remoteAddress()
remoteAddress
in class IoSession<UdpSocket>
public InetSocketAddress getInetSocketAddress()
public void setInetSocketAddress(InetSocketAddress inetSocketAddress)
public int remotePort()
remotePort
in class IoSession<UdpSocket>
protected DatagramChannel datagramChannel()
protected MessageSplitter getMessageSplitter()
IoSession
getMessageSplitter
in class IoSession<UdpSocket>
public boolean isConnected()
isConnected
in class IoSession<UdpSocket>
public boolean isOpen()
Copyright © 2020 Voovan. All rights reserved.