(
self,
socket_handler: typing.Callable[[socket.socket], None],
host: str = "localhost",
ready_event: threading.Event | None = None,
quit_event: threading.Event | None = None,
)
| 104 | USE_IPV6 = HAS_IPV6_AND_DNS |
| 105 | |
| 106 | def __init__( |
| 107 | self, |
| 108 | socket_handler: typing.Callable[[socket.socket], None], |
| 109 | host: str = "localhost", |
| 110 | ready_event: threading.Event | None = None, |
| 111 | quit_event: threading.Event | None = None, |
| 112 | ) -> None: |
| 113 | super().__init__() |
| 114 | self.daemon = True |
| 115 | |
| 116 | self.socket_handler = socket_handler |
| 117 | self.host = host |
| 118 | self.ready_event = ready_event |
| 119 | self.quit_event = quit_event |
| 120 | |
| 121 | def _start_server(self) -> None: |
| 122 | if self.USE_IPV6: |
nothing calls this directly
no outgoing calls
no test coverage detected