Example #1
0
 public PeerToPeerTaskManager(ConnectionImpl connection, CookieProvider cookieProvider, PeerManager manager)
 {
     m_Connection         = connection;
     m_EncryptorGenerator = connection.m_EncryptorGenerator;
     m_CookieProvider     = cookieProvider;
     m_PeerManager        = manager;
 }
Example #2
0
 internal ConnectionImpl(UdpSocket socket, EncryptorGenerator encryptorGenerator)
 {
     m_Socket             = socket;
     m_EncryptorGenerator = encryptorGenerator;
     m_PeerManager        = new PeerManager(this);
     P2PTask = new PeerToPeerTaskManager(this, m_CookieProvider, m_PeerManager);
     m_CookieProvider.Update();
 }
Example #3
0
 internal P2PConnectionImpl(int selfId, UdpSocket socket, PeerEntry owner, EncryptorGenerator encryptorGenerator) : base(socket, encryptorGenerator)
 {
     SelfId = selfId;
     m_CookieProvider.Update();
     m_Owner   = owner;
     m_IsOwner = false;
     m_PeerManager.Add(m_Owner);
 }