Example #1
0
        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;
        }
Example #2
0
 // ctor.
 public Connection(ClientModeConnectionHolder parent)
 {
     Parent       = parent;
     ConnectionId = Parent.ConectionIdSeq++;
 }