Beispiel #1
0
        private static void onConnect(Connection connection)
        {
            Console.WriteLine(connection.ConnectionInfo.RemoteEndPoint);
            //TODO generate rendom keys
            sbyte[] encKey = { 00, 00, 00, 00 };
            CCM.AddCC(connection, encKey);
            var packet = new AuthPackets.S2CHelloPacket(encKey);

            packet.Send(connection);
        }
Beispiel #2
0
        private static void OnC2SAskEnterCharSelect(ByteBuffer buffer, Connection connection)
        {
            var incPacket = new ConnectionPackets.C2SAskEnterCharSelect(buffer, connection);
            var userID    = incPacket.userID;
            var cc        = new ClientConnection(connection.ConnectionInfo.NetworkIdentifier, connection, new sbyte[] { 00, 00, 00, 00 });

            cc.AgentConnection = connection;
            cc.UserID          = userID;
            CCM.AddCC(cc);
            DBConnection.connection.SendObject("AskForCharacterList", userID);
        }