private void StartConnectionHolder() { var connection = new ClientModeConnectionHolder(new DnsEndPoint(_clientMode_host, _clientMode_port), _mac); connection.TunnelCreated += ClientMode_TunnelCreated; connection.ConnectionDestroyed += Connection_ConnectionDestroyed; connection.NewConnection += Connection_NewConnection; connection.StartConnections((int)numeric_maxCon.Value); _conHolder = connection; }
// ctor. public Connection(ClientModeConnectionHolder parent) { Parent = parent; ConnectionId = Parent.ConectionIdSeq++; }