public PeerConnectionManager(SuperPeer superPeer, IClient client)
        {            
            _superPeer = superPeer;
            _client = client;
            _clientInfo = new ClientInfo(client); 
                                  
            _client.ConnectionClosedEvent += RepositoryCleaner.ClientOnConnectionClosedEvent;

            Console.WriteLine("Client " + _client.RemoteEndPoint + " " + _client.LocalEndPoint + " Connected");
        }
Example #2
0
        public PeerConnectionManager(SuperPeer superPeer, IClient client)
        {
            _superPeer  = superPeer;
            _client     = client;
            _clientInfo = new ClientInfo(client);

            _client.ConnectionClosedEvent += RepositoryCleaner.ClientOnConnectionClosedEvent;

            Console.WriteLine("Client " + _client.RemoteEndPoint + " " + _client.LocalEndPoint + " Connected");
        }
Example #3
0
 public SuperPeerServer(SuperPeer superPeer, IClient peerClient)
     : base(superPeer, peerClient)
 {
 }
 static void Main(string[] args)
 {
     SuperPeer s = new SuperPeer(IPAddress.Parse("127.0.0.1"), 8090);
     s.Run();
 }
 public SuperPeerServer(SuperPeer superPeer, IClient peerClient)
     : base(superPeer, peerClient)
 {
 }
Example #6
0
 protected SuperPeerNode(SuperPeer superPeer, IClient peerClient)
 {
     _superPeer = superPeer;
     _peerClient = peerClient;
 }
Example #7
0
 protected SuperPeerNode(SuperPeer superPeer, IClient peerClient)
 {
     _superPeer  = superPeer;
     _peerClient = peerClient;
 }