NetSock_GetLocalIPAddr

Get the local IP addr used in the socket connection.

Files

net_sock.h/net_sock.c

Prototype

 

void  NetSock_GetLocalIPAddr (NET_SOCK_ID        sock_id,
                              CPU_INT08U        *p_buf_addr,
                              NET_SOCK_FAMILY   *p_family,
                              NET_ERR           *p_err)

Arguments

sock_idSocket descriptor/handle identifier.
p_buf_addrPointer to a buffer to return the local IP addr.
p_familyPointer to variable that will receive the conn family type of the local IP addr.
p_errPointer to variable that will receive the return error code from this function.

Returned Value

None.

Required Configuration

None.

Notes / Warnings

None.