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

Method setsockopt

Lib/test/mock_socket.py:68–69  ·  view source on GitHub ↗
(self, level, optname, value)

Source from the content-addressed store, hash-verified

66 return self.timeout
67
68 def setsockopt(self, level, optname, value):
69 pass
70
71 def getsockopt(self, level, optname, buflen=None):
72 return 0

Callers 15

has_dualstack_ipv6Function · 0.45
create_serverFunction · 0.45
server_bindMethod · 0.45
setupMethod · 0.45
connectMethod · 0.45
server_bindMethod · 0.45
_run_with_syncFunction · 0.45
_create_server_socketFunction · 0.45
testSetSockOptMethod · 0.45
testLoopbackMethod · 0.45

Calls

no outgoing calls

Tested by 15

_create_server_socketFunction · 0.36
testSetSockOptMethod · 0.36
testLoopbackMethod · 0.36
testFilterMethod · 0.36
testSocketBufferSizeMethod · 0.36
testSocketBufferSizeMethod · 0.36
checkHopLimitMethod · 0.36