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

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

src/d/i/digsby-HEAD/digsby/src/common/proxysockets.py   digsby(Download)
                 self, (endhost, endport))
 
        self.push(http_connect)
        self.push_handler(self._httpfinish)
        self.set_terminator('\r\n\r\n')
 
        log.info('ProxySocket._negotiatesocks4: sending request')
        self.push(req)
        self.push_handler(self._socks4finish)
        self.set_terminator(8)
            log.info('ProxySocket._negotiatesocks5: out=%r, terminator=%r', logdata, term)
 
            self.push(data); self.push_handler(handler); self.set_terminator(term)
 
        # Go!
        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')
            self.push_handler(lambda d: log.info(repr(d)))