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