MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / send

Method send

src/network/asyncore_pollchoose.py:646–657  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

644 return conn, addr
645
646 def send(self, data):
647 try:
648 result = self.socket.send(data)
649 return result
650 except socket.error as why:
651 if why.args[0] in (EAGAIN, EWOULDBLOCK, WSAEWOULDBLOCK):
652 return 0
653 elif why.args[0] in _DISCONNECTED:
654 self.handle_close()
655 return 0
656 else:
657 raise
658
659 def recv(self, buffer_size):
660 try:

Callers 4

initiate_sendMethod · 0.45
handle_writeMethod · 0.45
handle_writeMethod · 0.45
handle_writeMethod · 0.45

Calls 1

handle_closeMethod · 0.95

Tested by

no test coverage detected