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>> |
| Constructor and Description |
|---|
RakNetServer(SessionManager<T> sessionManager,
RakNetPacketRegistry<T> registry,
SessionFactory<T,RakNetSession> factory,
InetSocketAddress address,
long id,
RakNetServerEventListener eventListener,
int maxThreads) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind() |
static <T extends NetworkSession<RakNetSession>> |
builder() |
void |
close() |
void |
createSession(RakNetSession connection) |
InetSocketAddress |
getAddress() |
RakNetServerEventListener |
getEventListener() |
int |
getMaximumPlayers() |
protected void |
initPipeline(io.netty.channel.ChannelPipeline pipeline) |
void |
setMaximumPlayer(int maximumPlayers) |
getBootstrap, initChannelchannelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic RakNetServer(SessionManager<T> sessionManager, RakNetPacketRegistry<T> registry, SessionFactory<T,RakNetSession> factory, InetSocketAddress address, long id, RakNetServerEventListener eventListener, int maxThreads)
public static <T extends NetworkSession<RakNetSession>> RakNetServer.Builder<T> builder()
public int getMaximumPlayers()
public void createSession(RakNetSession connection)
public void setMaximumPlayer(int maximumPlayers)
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>>ExceptionCopyright © 2018. All rights reserved.