adds the use of r_socket implementation