static void Main(string[] args) { ClientHandleNetworkPackets.InitializeNetworkPackages(); ClientTCP.ConnectToServer(); Console.ReadLine(); }
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(); }