Refactored socket_process

socket_process now calls request_process after accepting a connection