NetSock_GetLocalIPAddr

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_id

Socket descriptor/handle identifier.

p_buf_addr

Pointer to a buffer to return the local IP addr.

p_family

Pointer to variable that will receive the conn family type of the local IP addr.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Value

None.

Required Configuration

None.

Notes / Warnings

None.