Name

netconn_peer() — Obtain the remote host IP address/port of a netconn

Synopsis

err_t netconn_peer (struct netconn *conn , struct ip_addr *addr , u16_t *port );

Description

This function is used to obtain the IPv4 address and port of the remote end of the connection indicated by conn. The parameters addr and port are result parameters that are set by the function. If the connection conn is not connected to any remote host, the results are undefined.