/
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.
Related content
NetSock_Bind
NetSock_Bind
More like this
NetSock_GetConnTransportID
NetSock_GetConnTransportID
More like this
NetSock_OptGet
NetSock_OptGet
More like this
NetApp_SetSockAddr
NetApp_SetSockAddr
More like this
getsockname TCP UDP
getsockname TCP UDP
More like this
NetSock_CfgTxIP_TOS
NetSock_CfgTxIP_TOS
More like this