Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/NatCheck.py   FriendlyTorrent(Download)
from socket import error as socketerror
from traceback import print_exc
from BitTornado.BTcrypto import Crypto, CRYPTO_OK
 
try:
            self.connection = rawserver.start_connection((ip, port), self)
            if encrypted:
                self._dc = not(CRYPTO_OK and CHECK_PEER_ID_ENCRYPTED)
                self.encrypter = Crypto(True, disable_crypto = self._dc)
                self.write(self.encrypter.pubkey+self.encrypter.padding())

src/b/i/BitTornado-HEAD/BitTornado/BT1/NatCheck.py   BitTornado(Download)
from socket import error as socketerror
from BitTornado.BTcrypto import Crypto, CRYPTO_OK
from Encrypter import tobinary16, toint, option_pattern
 
CHECK_PEER_ID_ENCRYPTED = True
            self.connection = rawserver.start_connection((ip, port), self)
            if encrypted:
                self._dc = not(CRYPTO_OK and CHECK_PEER_ID_ENCRYPTED)
                self.encrypter = Crypto(True, disable_crypto=self._dc)
                self.write(self.encrypter.pubkey + self.encrypter.padding())

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/track.py   FriendlyTorrent(Download)
from BitTornado.parsedir import parsedir
from NatCheck import NatCheck, CHECK_PEER_ID_ENCRYPTED
from BitTornado.BTcrypto import CRYPTO_OK
from T2T import T2TList
from BitTornado.subnetparse import IP_List, ipv6_to_ipv4, to_ipv4, is_valid_ip, is_ipv4
            self.only_local_override_ip = not config['nat_check']
 
        if CHECK_PEER_ID_ENCRYPTED and not CRYPTO_OK:
            print ('**warning** crypto library not installed,' +
                   ' cannot completely verify encrypted peers')

src/b/i/BitTornado-HEAD/BitTornado/BT1/track.py   BitTornado(Download)
from BitTornado.parsedir import parsedir
from NatCheck import NatCheck, CHECK_PEER_ID_ENCRYPTED
from BitTornado.BTcrypto import CRYPTO_OK
from T2T import T2TList
from BitTornado.torrentlistparse import parsetorrentlist
            self.only_local_override_ip = not config['nat_check']
 
        if CHECK_PEER_ID_ENCRYPTED and not CRYPTO_OK:
            print '**warning** crypto library not installed, cannot ' \
                'completely verify encrypted peers'