MCPcopy Index your code
hub / github.com/python/cpython / getsockopt

Method getsockopt

Lib/test/support/asyncore.py:612–618  ·  view source on GitHub ↗
(self, level, optname, buflen=None)

Source from the content-addressed store, hash-verified

610 return os.write(self.fd, *args)
611
612 def getsockopt(self, level, optname, buflen=None):
613 if (level == socket.SOL_SOCKET and
614 optname == socket.SO_ERROR and
615 not buflen):
616 return 0
617 raise NotImplementedError("Only asyncore specific behaviour "
618 "implemented.")
619
620 read = recv
621 write = send

Callers 8

test_abort_clientsMethod · 0.45
check_set_nodelayMethod · 0.45
bind_portFunction · 0.45
set_reuse_addrMethod · 0.45
handle_connect_eventMethod · 0.45
handle_expt_eventMethod · 0.45

Calls

no outgoing calls