mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +02:00
Server now processes session ids and stores the correct logged in user in the clientconnection object. Reserve character now creates a entry in the db.
This commit is contained in:
parent
c1e214175f
commit
f996f727dc
7 changed files with 152 additions and 71 deletions
|
@ -24,7 +24,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
public BlockingCollection<BasePacket> sendPacketQueue = new BlockingCollection<BasePacket>(100);
|
||||
|
||||
//Instance Stuff
|
||||
public uint currentSession;
|
||||
public uint currentUserId = 0;
|
||||
public uint currentAccount;
|
||||
|
||||
|
||||
|
@ -43,6 +43,9 @@ namespace FFXIVClassic_Lobby_Server
|
|||
|
||||
public void flushQueuedSendPackets()
|
||||
{
|
||||
if (!socket.Connected)
|
||||
return;
|
||||
|
||||
while (sendPacketQueue.Count > 0)
|
||||
{
|
||||
BasePacket packet = sendPacketQueue.Take();
|
||||
|
@ -55,14 +58,12 @@ namespace FFXIVClassic_Lobby_Server
|
|||
catch(Exception e)
|
||||
{ Debug.WriteLine("Weird case, socket was d/ced: {0}", e); }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return String.Format("{0}:{1}", (socket.RemoteEndPoint as IPEndPoint).Address, (socket.RemoteEndPoint as IPEndPoint).Port);
|
||||
}
|
||||
}
|
||||
|
||||
public void disconnect()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue