public class Connection extends Connection
Description:
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Connection.ConnectionState |
channel, context| 构造器和说明 |
|---|
Connection(NettyContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getPort() |
String |
getServer() |
boolean |
isConnected() |
void |
setChannelHandlerContext(io.netty.channel.ChannelHandlerContext context)
please call this when connected
|
void |
setPort(int port) |
void |
setServer(String server) |
void |
setState(Connection.ConnectionState state) |
getChannel, getRemoteHostAddress, getRemotePortpublic Connection(NettyContext context)
public void setChannelHandlerContext(io.netty.channel.ChannelHandlerContext context)
context - public String getServer()
public void setServer(String server)
public int getPort()
public void setPort(int port)
public void setState(Connection.ConnectionState state)
public boolean isConnected()
Copyright © 2020. All rights reserved.