public FormMonitor(IPAddress address, FormServer server, bool webcam) { InitializeComponent(); this.address = address; this.server = server; this.target = (byte)(webcam ? 'c' : 'd'); this.Text = "来自 " + address + " 的远程视频"; server.getFrame[address] = this; ns = server.getStream[address]; ns.WriteByte(target); FormMonitor_Resize(null, null); }
public ClientThread(FormServer server, TcpClient client) { this.server = server; this.client = client; }