MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / __init__

Method __init__

src/network/http-old.py:13–19  ·  view source on GitHub ↗
(self, host, path, connect=True)

Source from the content-addressed store, hash-verified

11 port = 12345
12
13 def __init__(self, host, path, connect=True):
14 if not hasattr(self, '_map'):
15 asyncore.dispatcher.__init__(self)
16 if connect:
17 self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
18 self.connect((host, HTTPClient.port))
19 self.buffer = 'GET %s HTTP/1.0\r\n\r\n' % path
20
21 def handle_close(self):
22 global requestCount

Callers

nothing calls this directly

Calls 2

create_socketMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected