nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ util_get_peer_addr()

int util_get_peer_addr ( struct sockaddr * peer,
char addr[static INET6_ADDRSTRLEN],
uint16_t * port )

Get peer IP address and port in printable format.

Parameters
[in]peerPeer address structure.
[out]addrIP address of the peer.
[out]portPort of the peer.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.