pub unsafe extern "C" fn sock_tcp_get_remote(
    sock: *mut sock_tcp_t,
    ep: *mut sock_tcp_ep_t
) -> c_int
Expand description

@brief Gets the remote end point of a TCP sock object

@pre (sock != NULL) && (ep != NULL)

@param[in] sock A TCP sock object. @param[out] ep The remote end point.

@return 0 on success. @return -ENOTCONN, when @p sock is not connected to a remote end point.