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

All Samples(12)  |  Call(0)  |  Derive(7)  |  Import(5)

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/IPC.py   kamaelia(Download)
from binascii import b2a_hex
 
from BitTorrent.RawServer_magic import RawServer, Handler
from BitTorrent.platform import get_home_dir, get_config_dir
from BitTorrent import INFO, WARNING, ERROR, CRITICAL, BTFailure, app_name
class ControlsocketListener(Handler):
 
    def __init__(self, callback):
        self.callback = callback
 
    def connection_made(self, connection):
        connection.handler = MessageReceiver(self.callback)
 
 
class MessageReceiver(Handler):

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/NatTraversal.py   kamaelia(Download)
from BitTorrent import INFO, WARNING, ERROR
from BitTorrent.platform import os_version
from BitTorrent.RawServer_magic import RawServer, Handler
from BitTorrent.BeautifulSupe import BeautifulSupe, Tag
from urllib2 import URLError, HTTPError, Request
class ManualUPnP(NATBase, Handler):
 
    upnp_addr = ('239.255.255.250', 1900)
 
    search_string = ('M-SEARCH * HTTP/1.1\r\n' +

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/Encoder.py   kamaelia(Download)
 
from BitTorrent import BTFailure
from BitTorrent.RawServer_magic import Handler
from BitTorrent.NatTraversal import UPNPError
from BitTorrent.Connecter import Connection
class InitialConnectionHandler(Handler):
    def __init__(self, parent, id):
        self.parent = parent
        self.id = id
        self.accept = True
class SingleportListener(Handler):
 
    def __init__(self, rawserver, nattraverser):
        self.rawserver = rawserver
        self.nattraverser = nattraverser

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/khashmir/krpc.py   kamaelia(Download)
from BitTorrent.bencode import bencode, bdecode
import socket
from BitTorrent.RawServer_magic import Handler
from BitTorrent.platform import bttime
import time
class hostbroker(Handler):       
    def __init__(self, server, addr, transport, call_later, max_ul_rate, config, rlcount):
        self.server = server
        self.addr = addr
        self.transport = transport

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/Connecter.py   kamaelia(Download)
from struct import pack, unpack
 
from BitTorrent.RawServer_magic import Handler
from BitTorrent.bitfield import Bitfield
from BitTorrent.obsoletepythonsupport import *
class Connection(Handler):
 
    def __init__(self, encoder, connection, id, is_local):
        self.encoder = encoder
        self.connection = connection