示例#1
0
 public void ReConnect(string host, int port)
 {
     if (communication != null)
     {
         this.communication.StopReciving();
         this.communication.MessageRecivedEvent -= MessageRecived;
     }
     this.communication = new CommunicationTCPIP(host, port, Timeout);
     this.communication.MessageRecivedEvent += MessageRecived;
 }
示例#2
0
 public VPJClient(string host, int port)
 {
     this.communication = new CommunicationTCPIP(host, port, Timeout);
     this.communication.MessageRecivedEvent += MessageRecived;
 }