public final class TcpServerTransporterNetty extends java.lang.Object implements ServerTransporter, ChannelManager
| Constructor and Description |
|---|
TcpServerTransporterNetty() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(io.netty.channel.Channel _channel) |
void |
addListener(ServerTransporterListener _listener) |
void |
bind(int port) |
void |
dispose() |
int |
getConnectionCount() |
void |
removeChannel(io.netty.channel.Channel _channel) |
void |
removeListener(ServerTransporterListener _listener) |
void |
sendToAll(byte[] _data,
java.lang.Object _excludeId) |
void |
sendToOne(byte[] _data,
java.lang.Object _id) |
void |
unbind() |
public void dispose()
dispose in interface ServerTransporterpublic void addChannel(io.netty.channel.Channel _channel)
addChannel in interface ChannelManagerpublic void removeChannel(io.netty.channel.Channel _channel)
removeChannel in interface ChannelManagerpublic void bind(int port)
throws RCPException
bind in interface ServerTransporterRCPExceptionpublic void unbind()
unbind in interface ServerTransporterpublic void sendToOne(byte[] _data,
java.lang.Object _id)
sendToOne in interface ServerTransporterpublic void sendToAll(byte[] _data,
java.lang.Object _excludeId)
sendToAll in interface ServerTransporterpublic int getConnectionCount()
getConnectionCount in interface ServerTransporterpublic void addListener(ServerTransporterListener _listener)
addListener in interface ServerTransporterpublic void removeListener(ServerTransporterListener _listener)
removeListener in interface ServerTransporter