Пример #1
0
    def setUpPostSession(self):
        """ override TestAsServer """
        TestExtendHandshake.setUpPostSession(self)

        # Create a fake "internal network interface"
        self.setUpMyListenSocket()

        self.myid = "R------andomPeer4811"
Пример #2
0
    def setUpPostSession(self):
        """ override TestAsServer """
        TestExtendHandshake.setUpPostSession(self)

        # Create a fake "internal network interface"
        self.setUpMyListenSocket()

        self.myid = "R------andomPeer4811"
Пример #3
0
    def setUpDownloadConfig(self):
        dscfg = TestExtendHandshake.setUpDownloadConfig(self)

        dscfg.set_same_nat_try_internal(True)
        dscfg.set_unchoke_bias_for_internal(481)
        return dscfg
Пример #4
0
 def setUpPreSession(self):
     """ override TestAsServer """
     TestExtendHandshake.setUpPreSession(self)
Пример #5
0
 def setUp(self):
     """ override TestAsServer """
     TestExtendHandshake.setUp(self)
Пример #6
0
    def setUpDownloadConfig(self):
        dscfg = TestExtendHandshake.setUpDownloadConfig(self)

        dscfg.set_same_nat_try_internal(True)
        dscfg.set_unchoke_bias_for_internal(481)
        return dscfg
Пример #7
0
 def setUpPreSession(self):
     """ override TestAsServer """
     TestExtendHandshake.setUpPreSession(self)
Пример #8
0
 def setUp(self):
     """ override TestAsServer """
     TestExtendHandshake.setUp(self)