コード例 #1
0
ファイル: Form1.cs プロジェクト: DanilovSoft/PortTunneling
        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;
        }
コード例 #2
0
 // ctor.
 public Connection(ClientModeConnectionHolder parent)
 {
     Parent       = parent;
     ConnectionId = Parent.ConectionIdSeq++;
 }