(address)
| 227 | pass |
| 228 | |
| 229 | def run_server(address): |
| 230 | with socket.socket() as listener: |
| 231 | # Allow the port to be reused |
| 232 | listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) |
| 233 | listener.bind(address) |
| 234 | listener.listen() |
| 235 | while True: |
| 236 | connection, _ = listener.accept() |
| 237 | thread = Thread( |
| 238 | target=handle_connection, |
| 239 | args=(connection,), |
| 240 | daemon=True, |
| 241 | ) |
| 242 | thread.start() |
| 243 | |
| 244 | |
| 245 | print("Example 14") |
nothing calls this directly
no outgoing calls
no test coverage detected