Lines Matching defs:addr

262  * @param addr a pointer to which to save the IP address
269 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
275 LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
283 *addr = msg->msg.ad.ipaddr;
286 msg.msg.ad.ipaddr = addr;
301 * @param addr the local IP address to bind the netconn to
307 netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port)
316 if (addr == NULL) {
317 addr = IP4_ADDR_ANY;
326 ip_addr_cmp(addr, IP6_ADDR_ANY)) {
327 addr = IP_ANY_TYPE;
333 API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
372 * @param addr the remote IP address to connect to
377 netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
386 if (addr == NULL) {
387 addr = IP4_ADDR_ANY;
393 API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
894 ip_addr_set_zero(&buf->addr);
917 * @param addr the remote IP address to which to send the data
922 netconn_sendto(struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port)
925 ip_addr_set(&buf->addr, addr);
1262 * @param addr a preallocated ip_addr_t where to store the resolved IP address
1271 netconn_gethostbyname_addrtype(const char *name, ip_addr_t *addr, u8_t dns_addrtype)
1274 netconn_gethostbyname(const char *name, ip_addr_t *addr)
1285 LWIP_ERROR("netconn_gethostbyname: invalid addr", (addr != NULL), return ERR_ARG;);
1294 if (LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, dns_addrtype, &err)) {
1296 if (LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, NETCONN_DNS_DEFAULT, &err)) {
1309 API_VAR_REF(msg).addr = API_VAR_REF(addr);
1335 *addr = msg->addr;