Interface ClientSession
- All Superinterfaces:
Session
- All Known Implementing Classes:
ClientNetworkSession
A network client session.
-
Method Summary
Methods inherited from interface org.geysermc.mcprotocollib.network.Session
addListener, callEvent, callPacketReceived, callPacketSent, disconnect, disconnect, disconnect, disconnect, getChannel, getCodecHelper, getFlag, getFlag, getFlags, getFlagSupplied, getListeners, getLocalAddress, getPacketHandlerExecutor, getPacketProtocol, getRemoteAddress, hasFlag, isConnected, removeListener, send, send, setAutoRead, setCompression, setEncryption, setFlag, setFlags, switchInboundState, switchOutboundState
-
Method Details
-
connect
default void connect()Connects this session to its host and port. -
connect
void connect(boolean wait) Connects this session to its host and port.- Parameters:
wait- Whether to wait for the connection to be established before returning.
-
getProxy
@Nullable ProxyInfo getProxy()Get the proxy used by this session.- Returns:
- The proxy used by this session.
-