@ParametersAreNonnullByDefault public abstract class RakNetSession extends Object
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
allocateBuffer(int capacity) |
void |
close(DisconnectReason reason) |
void |
disconnect() |
void |
disconnect(DisconnectReason reason) |
InetSocketAddress |
getAddress() |
int |
getMtu() |
abstract RakNet |
getRakNet() |
RakNetState |
getState() |
boolean |
isClosed() |
boolean |
isStale() |
boolean |
isTimedOut() |
protected void |
onClose() |
protected abstract void |
onPacket(io.netty.buffer.ByteBuf buffer) |
void |
send(io.netty.buffer.ByteBuf buf) |
void |
send(io.netty.buffer.ByteBuf buf,
RakNetReliability reliability) |
void |
send(io.netty.buffer.ByteBuf buf,
RakNetReliability reliability,
int orderingChannel) |
protected void |
tick() |
public InetSocketAddress getAddress()
public int getMtu()
public io.netty.buffer.ByteBuf allocateBuffer(int capacity)
protected abstract void onPacket(io.netty.buffer.ByteBuf buffer)
protected void tick()
public void disconnect()
public void disconnect(DisconnectReason reason)
public void close(DisconnectReason reason)
protected void onClose()
public void send(io.netty.buffer.ByteBuf buf)
public void send(io.netty.buffer.ByteBuf buf,
RakNetReliability reliability)
public void send(io.netty.buffer.ByteBuf buf,
RakNetReliability reliability,
@Nonnegative
int orderingChannel)
public boolean isStale()
public boolean isTimedOut()
public boolean isClosed()
public abstract RakNet getRakNet()
public RakNetState getState()
Copyright © 2018–2019. All rights reserved.