Added decompression/compression of packets. Cleaned up handshaking.

This commit is contained in:
Filip Maj 2016-08-24 15:41:54 -04:00
parent 4aae16e458
commit 364ab40b3f
8 changed files with 123 additions and 43 deletions

View file

@ -11,16 +11,17 @@ namespace FFXIVClassic_World_Server.DataObjects
{
public enum Channel {ZONE, CHAT};
public readonly ulong sessionId;
public readonly ClientConnection clientSocket;
public readonly uint sessionId;
public readonly ClientConnection clientConnection;
public readonly Channel type;
public ZoneServer routing1, routing2;
public Session(ulong sessionId, ClientConnection socket, Channel type)
public Session(ulong sessionId, ClientConnection connection, Channel type)
{
this.sessionId = sessionId;
this.clientSocket = socket;
this.clientConnection = connection;
this.type = type;
connection.owner = this;
}
}