Check whether AF_QIPCRTR sockets are supported on this host.
()
| 155 | return True |
| 156 | |
| 157 | def _have_socket_qipcrtr(): |
| 158 | """Check whether AF_QIPCRTR sockets are supported on this host.""" |
| 159 | try: |
| 160 | s = socket.socket(socket.AF_QIPCRTR, socket.SOCK_DGRAM, 0) |
| 161 | except (AttributeError, OSError): |
| 162 | return False |
| 163 | else: |
| 164 | s.close() |
| 165 | return True |
| 166 | |
| 167 | def _have_socket_vsock(): |
| 168 | """Check whether AF_VSOCK sockets are supported on this host.""" |
no test coverage detected
searching dependent graphs…