static void Main(string[] args)
 {
     Console.Title = "Client";
     ClientDataHandle.InitializeNetworkPackages();
     ClientTCP.ConnectToServer();
     Console.ReadLine();
 }
Beispiel #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();
        }