public void Close() { ActiveClient.Client.NoDelay = true; ActiveClient.Client.Disconnect(false); ActiveStream.Close(); ActiveClient.Close(); }
public void Disconnect() { if (ActiveClient != null && ActiveClient.Connected) { ActiveClient.Close(); ActiveClient = null; } if (PassiveClient != null && PassiveClient.Connected) { PassiveClient.Close(); PassiveClient = null; } }
public void Close() { ActiveClient.Close(); ActiveStream.Close(); }