public class RakNetClient<T extends NetworkSession<RakNetSession>> extends RakNet<T> implements NetworkClient<T,RakNetSession>
| Modifier and Type | Class and Description |
|---|---|
static class |
RakNetClient.Builder<T extends NetworkSession<RakNetSession>> |
| Constructor and Description |
|---|
RakNetClient(SessionManager<T> sessionManager,
RakNetPacketRegistry<T> packetRegistry,
SessionFactory<T,RakNetSession> sessionFactory,
long id) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<T> |
connect(InetSocketAddress remoteAddress) |
RakNetConnectingSession<T> |
getConnectingSession(InetSocketAddress localAddress) |
protected void |
initPipeline(io.netty.channel.ChannelPipeline pipeline) |
CompletableFuture<RakNetPong> |
ping(InetSocketAddress remoteAddress) |
void |
removeConnectingSession(InetSocketAddress localAddress) |
getBootstrap, initChannelchannelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic RakNetClient(SessionManager<T> sessionManager, RakNetPacketRegistry<T> packetRegistry, SessionFactory<T,RakNetSession> sessionFactory, long id)
protected void initPipeline(io.netty.channel.ChannelPipeline pipeline)
throws Exception
initPipeline in class RakNet<T extends NetworkSession<RakNetSession>>Exceptionpublic CompletableFuture<T> connect(@Nonnull InetSocketAddress remoteAddress) throws Exception
connect in interface NetworkClient<T extends NetworkSession<RakNetSession>,RakNetSession>Exceptionpublic CompletableFuture<RakNetPong> ping(@Nonnull InetSocketAddress remoteAddress)
public void close()
close in interface NetworkClient<T extends NetworkSession<RakNetSession>,RakNetSession>public RakNetConnectingSession<T> getConnectingSession(InetSocketAddress localAddress)
public void removeConnectingSession(InetSocketAddress localAddress)
Copyright © 2018. All rights reserved.