| Package | Description |
|---|---|
| org.voovan.network |
| Modifier and Type | Field and Description |
|---|---|
protected ConnectModel |
SocketContext.connectModel |
| Modifier and Type | Method and Description |
|---|---|
ConnectModel |
SocketContext.getConnectModel()
获取连接模式
|
static ConnectModel |
ConnectModel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectModel[] |
ConnectModel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static HeartBeat |
HeartBeat.attachSession(IoSession session,
ConnectModel connectModel)
将心跳绑定到 Session
默认使用 PING, PONG 作为心跳消息
|
static HeartBeat |
HeartBeat.attachSession(IoSession session,
ConnectModel connectModel,
String ping,
String pong)
将心跳绑定到 Session
|
Copyright © 2019 Voovan. All rights reserved.