Networking Fixes & Updates
This commit is contained in:
1 parent
44b4ba84c2
commit
c391d290ec
6 files changed
+64
-16
No files matched your search
@@ -20,10 +20,12 @@ DisconnectPacket::DisconnectPacket(eDisconnectReason reason)
|
||||
void DisconnectPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
reason = (eDisconnectReason)dis->readInt();
|
||||
fprintf(stderr, "[PKT] DisconnectPacket::read reason=%d\n", reason);
|
||||
}
|
||||
|
||||
void DisconnectPacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
fprintf(stderr, "[PKT] DisconnectPacket::write reason=%d\n", reason);
|
||||
dos->writeInt((int)reason);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user