예제 #1
0
 internal MumbleTcpConnection(IPEndPoint host, string hostname, UpdateOcbServerNonce updateOcbServerNonce, MumbleError errorCallback,
                              MumbleClient mc)
 {
     _host                 = host;
     _hostname             = hostname;
     _mc                   = mc;
     _tcpClient            = new TcpClient();
     _updateOcbServerNonce = updateOcbServerNonce;
     _errorCallback        = errorCallback;
 }
예제 #2
0
        internal MumbleTcpConnection(IPEndPoint host, string hostname, UpdateOcbServerNonce updateOcbServerNonce,
                                     MumbleUdpConnection udpConnection, MumbleClient mumbleClient)
        {
            _host                 = host;
            _hostname             = hostname;
            _mumbleClient         = mumbleClient;
            _udpConnection        = udpConnection;
            _tcpClient            = new TcpClient();
            _updateOcbServerNonce = updateOcbServerNonce;

            _processThread = new Thread(ProcessTcpData)
            {
                IsBackground = true
            };
        }