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();
 }