public AbstractConnectedState(Connection connection, ConnectionParameter param, TcpClient client) { isStopped = false; this.tcpControlConnection = client; this.stream = tcpControlConnection.GetStream(); this.param = param; this.connection = connection; controlConnectionListener = new BackgroundWorker(); controlConnectionListener.DoWork += controlConnectionListener_DoWork; controlConnectionListener.RunWorkerCompleted += controlConnectionListener_RunWorkerCompleted; controlConnectionListener.WorkerSupportsCancellation = true; controlConnectionListener.WorkerReportsProgress = true; controlConnectionListener.ProgressChanged += controlConnectionListener_ProgressChanged; controlConnectionListener.RunWorkerAsync(); Trace.TraceInformation("Stato connesso."); }
public TcpConnectedState(Connection connection, ConnectionParameter param, System.Net.Sockets.TcpClient tcpControlConnection) : base(connection, param, tcpControlConnection) { }
public UdpConnectedState(Connection connection, ConnectionParameter param, TcpClient tcpControlConnection) : base(connection, param, tcpControlConnection) { }