Exemplo n.º 1
0
        public static void OnPing(ClusterClient client, INetPacketStream packet)
        {
            var pak = new PingPacket(packet);

            if (!pak.IsTimeOut)
            {
                CommonPacketFactory.SendPong(client, pak.Time);
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        protected override void OnClientConnected(LoginClient client)
        {
            this._logger.LogInformation($"New client connected from {client.RemoteEndPoint}.");

            CommonPacketFactory.SendWelcome(client, client.SessionId);
        }
Exemplo n.º 3
0
 /// <inheritdoc />
 protected override void OnClientConnected(WorldClient client)
 {
     client.InitializeClient(this);
     this._logger.LogInformation("New client connected from {0}.", client.RemoteEndPoint);
     CommonPacketFactory.SendWelcome(client, client.SessionId);
 }