Esempio n. 1
0
 public DoVoice(frmRemoteCam fm, string hostName, int port)
 {
     m_f = fm;
     tcpClient = new TcpClient(hostName, port);
     tcpClient.NoDelay = false;
     tcpClient.ReceiveTimeout = 2000;
     tcpClient.ReceiveBufferSize = 20000;
     networkStream = tcpClient.GetStream();
 }
Esempio n. 2
0
 private void btnRemoteCam_Click(object sender, EventArgs e)
 {
     this.Hide();
     m_voice.Speak("远程聊天功能", SpeechVoiceSpeakFlags.SVSFlagsAsync);
     m_frmRemoteCam = new frmRemoteCam(this);
     m_frmRemoteCam.Show();
 }
Esempio n. 3
0
            public DoImages(frmRemoteCam f, string hostName, int nPort)
            {
                Done = false;
                m_f = f;

                // Connect to the server and get the stream
                tcpClient = new TcpClient(hostName, nPort);
                tcpClient.NoDelay = false;
                tcpClient.ReceiveTimeout = 2000;
                tcpClient.ReceiveBufferSize = 20000;
                networkStream = tcpClient.GetStream();
            }