eCosPro® Reference Manual
Prev |  | Next

# netconn_peer()

## 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 IP 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.

Prev | Home | Next
netconn_type() | Up | netconn_addr()