Пример #1
0
        private static void Main(string[] args)
        {
            SynContext = new SynchronizationContext();
            SynchronizationContext.SetSynchronizationContext(SynContext);

            client = new Client();
            client.StatusMessage += new EventHandler<StatusMessageArgs>(OnStatusMessage);
            client.Connect("127.0.0.1", 48360);

            while (true)
            {
                client.Update();
            }
        }
Пример #2
0
 public void InitNetwork()
 {
     client          = new Client();
     InitServerEvent();
     InitServerMessage();
 }