Пример #1
0
 public void StartClient()
 {
     address = IPAddress.Parse("127.0.0.1");
     client  = new CommandClient(address, 8000, "Hi");
     client.ConnectToServer();
     client.CommandSent     += new CommandSentEventHandler(client_CommandSent);
     client.CommandReceived += new CommandReceivedEventHandler(client_CommandReceived);
     // client.SendCommand(new Command(CommandType.FreeCommand, IPAddress.Broadcast, client.IP + ":" + client.NetworkName));
     //client.SendCommand(new Command(CommandType.SendClientList, client.ServerIP));
 }