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

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

src/d/i/digsby-HEAD/digsby/src/common/proxysockets.py   digsby(Download)
import util
from AsyncSocket import AsyncSocket as asocket  # our AsyncSocket
import socks                                    # socks module
from socket import _socket as socket            # original python socket module
from functools import wraps
class ProxySocket(asocket):
    def __init__(self, proxy, conn, post):
        asocket.__init__(self, conn)
 
        self.callback = None
    class HeadSocket(asocket):
        def __init__(self, *a, **k):
            asocket.__init__(self, *a, **k)
            self.set_terminator('\r\n\r\n')
            self.push('HEAD / HTTP/1.0\r\n\r\n')

src/d/i/digsby-HEAD/digsby/src/common/__init__.py   digsby(Download)
from Protocol import Protocol as protocol
from Protocol import StateMixin
from AsyncSocket import AsyncSocket as socket
from Buddy import Buddy as buddy
from Buddy import write_hashes, get_bname