MCPcopy Index your code
hub / github.com/RustPython/RustPython / _set_reuseport

Function _set_reuseport

Lib/asyncio/base_events.py:89–97  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

87
88
89def _set_reuseport(sock):
90 if not hasattr(socket, 'SO_REUSEPORT'):
91 raise ValueError('reuse_port not supported by socket module')
92 else:
93 try:
94 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
95 except OSError:
96 raise ValueError('reuse_port not supported by socket module, '
97 'SO_REUSEPORT defined but not implemented.')
98
99
100def _ipaddr_info(host, port, family, type, proto, flowinfo=0, scopeid=0):

Callers 2

create_serverMethod · 0.85

Calls 2

hasattrFunction · 0.85
setsockoptMethod · 0.45

Tested by

no test coverage detected