It doesn't make sense for a request to know about the socket fd it will be received on.. in coordinator.main - Plumb down connection_socket into receive_request() as another parameter - Pass it directly from listen_for_requests()