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; }
public VPJClient(string host, int port) { this.communication = new CommunicationTCPIP(host, port, Timeout); this.communication.MessageRecivedEvent += MessageRecived; }