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