added remote_endpoint() call to tcp_socket