move received_from_socket_source to a header
remove unnecessary includes