Пример #1
0
 // Client
 public Labirint(string host, string port)
 {
     mode = 2;
     phone = new PhoneClient(host, int.Parse(port));
     phone.Recv += Recv;
     phone.Start();
     my_user = 2;
     ot_user = 1;
     Init();
 }
Пример #2
0
 // Server
 public Labirint(string port)
 {
     mode = 2;
     phone = new PhoneServer(int.Parse(port));
     phone.Recv += Recv;
     phone.Start();
     my_user = 1;
     ot_user = 2;
     Init();
 }