Package mindustry.net
Class Packet
java.lang.Object
mindustry.net.Packet
- Direct Known Subclasses:
Packets.Connect
,Packets.ConnectPacket
,Packets.Disconnect
,Packets.StreamBegin
,Packets.StreamChunk
,Streamable
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final ReusableByteInStream
protected static final byte[]
static final int
Gets handled immediately, regardless of connection status.static final int
Does not get handled unless client is connected.static final int
Gets put in a queue and processed if not connected.protected static final Reads
-
Constructor Summary
-
Method Summary
-
Field Details
-
NODATA
protected static final byte[] NODATA -
BAIS
-
READ
-
priorityLow
public static final int priorityLowDoes not get handled unless client is connected.- See Also:
-
priorityNormal
public static final int priorityNormalGets put in a queue and processed if not connected.- See Also:
-
priorityHigh
public static final int priorityHighGets handled immediately, regardless of connection status.- See Also:
-
-
Constructor Details
-
Packet
public Packet()
-
-
Method Details
-
read
-
write
-
read
-
handled
public void handled() -
getPriority
public int getPriority() -
handleClient
public void handleClient() -
handleServer
-