nRF Connect SDK API 0.1.0
|
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.
[in] | peer | Peer address structure. |
[out] | addr | IP address of the peer. |
[out] | port | Port of the peer. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |