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(); }
private void btnRemoteCam_Click(object sender, EventArgs e) { this.Hide(); m_voice.Speak("远程聊天功能", SpeechVoiceSpeakFlags.SVSFlagsAsync); m_frmRemoteCam = new frmRemoteCam(this); m_frmRemoteCam.Show(); }
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(); }