Method | Description | |
---|---|---|
PacketProcessor ( ) : System | ||
QueuePacket ( byte fullData, SocketClient receiver ) : void |
|
|
SentPacket ( |
Called when the packet is sent.
|
|
StartProcessing ( ) : void |
Spawns a thread to start processing packets
|
|
StopProcessing ( ) : void |
Kills the thread, making it stop processing packets!
|
Method | Description | |
---|---|---|
BytesToString ( byte data ) : String |
Converts a byte array to a string.
|
|
ConfirmPacket ( int packetID ) : void |
Confirms a packet ID.
|
|
ConstructPacket ( byte fullData ) : SocketLibrary.Packets.Packet[] |
Constructs a packet from a full byte array.
|
|
ProcessQueue ( ) : void | ||
StringToBytes ( String str ) : byte[] |
Converts a string to bytes.
|
public QueuePacket ( byte fullData, SocketClient receiver ) : void | ||
fullData | byte | |
receiver | SocketClient | |
return | void |
public SentPacket ( |
||
p | The packet that was sent. | |
client | SocketClient | |
return | void |