/// <summary> /// Dispose of all the connections. /// </summary> public void Dispose() { tcpClient.Dispose(); dataConnection.Close(); }