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

Method accept

src/network/asyncore_pollchoose.py:632–644  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

630 raise socket.error(err, errorcode[err])
631
632 def accept(self):
633 # XXX can return either an address pair or None
634 try:
635 conn, addr = self.socket.accept()
636 except TypeError:
637 return None
638 except socket.error as why:
639 if why.args[0] in (EWOULDBLOCK, WSAEWOULDBLOCK, ECONNABORTED, EAGAIN, ENOTCONN):
640 return None
641 else:
642 raise
643 else:
644 return conn, addr
645
646 def send(self, data):
647 try:

Callers 7

handle_acceptMethod · 0.95
ssltest.pyFile · 0.45
handle_acceptMethod · 0.45
runMethod · 0.45
handle_acceptMethod · 0.45
handle_acceptMethod · 0.45
handle_acceptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected