Class TcpClientSession

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Packet>
org.geysermc.mcprotocollib.network.tcp.TcpSession
org.geysermc.mcprotocollib.network.tcp.TcpClientSession
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, Session

public class TcpClientSession extends TcpSession
  • Constructor Details

  • Method Details

    • connect

      public void connect(boolean wait, boolean transferring)
      Description copied from interface: Session
      Connects this session to its host and port.
      Specified by:
      connect in interface Session
      Overrides:
      connect in class TcpSession
      Parameters:
      wait - Whether to wait for the connection to be established before returning.
      transferring - Whether the session is a client being transferred.
    • getCodecHelper

      public PacketCodecHelper getCodecHelper()
      Description copied from interface: Session
      Gets the session's PacketCodecHelper.
      Returns:
      The session's packet codec helper.
    • newThreadFactory

      protected static ThreadFactory newThreadFactory()