IoSession.StatereadByteBufferChannel, sendByteBufferChannel, SOCKET_IDLE_WHEEL_TIME| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
关闭会话
|
protected MessageSplitter |
getMessageSplitter()
获取消息分割处理类
|
boolean |
isConnected()
会话是否打开
|
boolean |
isOpen()
会话是否打开
|
int |
loaclPort()
获取本地端口
|
String |
localAddress()
获取本地 IP 地址
|
String |
remoteAddress()
获取对端 IP 地址
|
int |
remotePort()
获取对端端口
|
protected SocketChannel |
socketChannel()
获取SocketChannel 对象
|
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, syncSendattributes, clearAttribute, containAttribute, getAttribute, isModifyed, removeAttribute, setAttribute, setModifyedpublic String localAddress()
localAddress in class IoSession<TcpSocket>public int loaclPort()
public String remoteAddress()
remoteAddress in class IoSession<TcpSocket>public int remotePort()
remotePort in class IoSession<TcpSocket>protected SocketChannel socketChannel()
protected MessageSplitter getMessageSplitter()
IoSessiongetMessageSplitter in class IoSession<TcpSocket>public boolean isConnected()
isConnected in class IoSession<TcpSocket>public boolean isOpen()
Copyright © 2020 Voovan. All rights reserved.