public class RakNetServer<T extends NetworkSession<RakNetSession>> extends RakNet<T> implements NetworkListener
| Modifier and Type | Class and Description |
|---|---|
static class |
RakNetServer.Builder<T extends NetworkSession<RakNetSession>> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind() |
static <T extends RakNetServer.Builder<U>,U extends NetworkSession<RakNetSession>> |
builder() |
void |
close() |
void |
createSession(RakNetSession connection) |
InetSocketAddress |
getAddress() |
RakNetServerEventListener |
getEventListener() |
T |
getSession(io.netty.channel.AddressedEnvelope<?,InetSocketAddress> packet) |
protected void |
initPipeline(io.netty.channel.ChannelPipeline pipeline) |
getTimestamp, initChannelchannelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic static <T extends RakNetServer.Builder<U>,U extends NetworkSession<RakNetSession>> T builder()
public void createSession(RakNetSession connection)
public RakNetServerEventListener getEventListener()
public boolean bind()
bind in interface NetworkListenerpublic void close()
close in interface NetworkListenerpublic InetSocketAddress getAddress()
getAddress in interface NetworkListenerprotected void initPipeline(io.netty.channel.ChannelPipeline pipeline)
throws Exception
initPipeline in class RakNet<T extends NetworkSession<RakNetSession>>Exceptionpublic T getSession(io.netty.channel.AddressedEnvelope<?,InetSocketAddress> packet)
getSession in class RakNet<T extends NetworkSession<RakNetSession>>Copyright © 2018–2019. All rights reserved.