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

Method set_socket

src/network/asyncore_pollchoose.py:571–575  ·  view source on GitHub ↗
(self, sock, map=None)

Source from the content-addressed store, hash-verified

569 self.set_socket(sock)
570
571 def set_socket(self, sock, map=None):
572 self.socket = sock
573## self.__dict__['socket'] = sock
574 self._fileno = sock.fileno()
575 self.add_channel(map)
576
577 def set_reuse_addr(self):
578 # try to re-use a server port if possible

Callers 3

__init__Method · 0.95
create_socketMethod · 0.95
tls_handshakeMethod · 0.80

Calls 2

add_channelMethod · 0.95
filenoMethod · 0.80

Tested by

no test coverage detected