Exemple #1
0
        static void Main(string[] args)
        {
            ClientHandleNetworkPackets.InitializeNetworkPackages();
            ClientTCP.ConnectToServer();

            Console.ReadLine();
        }
Exemple #2
0
        private static void HandleConnectionOK(byte[] data)
        {
            PacketBuffer buffer = new PacketBuffer();

            buffer.WriteBytes(data);
            buffer.ReadInteger();
            string msg = buffer.ReadString();

            buffer.Dispose();

            //Add your code you want to execute here...
            Console.WriteLine(msg);

            ClientTCP.ThankYouServer();
        }