pub fn set_socket_receive_timeout(socket: CSocket, t: Duration) -> Result<()>
Set a timeout for receiving from the socket.