rdma_get_dst_port

Returns the remote port number of a bound rdma_cm_id.

Syntax

#include <rdma/rdma_cma.h>
uint16_t rdma_get_dst_port(struct rdma_cm_id *id)

Description

The rdma_get_dst_port function returns the remote port number for an rdma_cm_id that has been bound to a remote address.

Parameters

id Specifies the connection identifier associated with the request.

Return Values

The rdma_get_dst_port function returns the following values:
local port number On success.
0 The error occurs if the id is NULL.
[ Feedback ]