mirror of
https://github.com/NexusForever/NexusForever
synced 2026-08-14 00:26:05 -04:00
* Core/RealmList: Reload servers and handle offline Refreshes servers from database if the server list is deemed dirty Converted to Asynchronous Database checks Refactored to use Update Moved Server ping to the ServerInfo model Moved ServerManager to own thread Fixes following singleton update Fixes following review * Small cleanup.
31 lines
811 B
C#
31 lines
811 B
C#
using System.Net.Sockets;
|
|
using NexusForever.AuthServer.Network.Message.Model;
|
|
using NexusForever.Shared.Network;
|
|
using NexusForever.Shared.Network.Message;
|
|
using NexusForever.Shared.Network.Message.Model;
|
|
|
|
namespace NexusForever.AuthServer.Network
|
|
{
|
|
public class AuthSession : GameSession
|
|
{
|
|
public override void OnAccept(Socket newSocket)
|
|
{
|
|
base.OnAccept(newSocket);
|
|
|
|
EnqueueMessage(new ServerHello
|
|
{
|
|
AuthVersion = 16042,
|
|
AuthMessage = 0x97998A0,
|
|
ConnectionType = 3
|
|
});
|
|
}
|
|
|
|
protected override IWritable BuildEncryptedMessage(byte[] data)
|
|
{
|
|
return new ServerAuthEncrypted
|
|
{
|
|
Data = data
|
|
};
|
|
}
|
|
}
|
|
}
|