Lines Matching defs:port
258 * Get the local or remote IP address and port of a netconn.
259 * For RAW netconns, this returns the protocol instead of a port!
263 * @param port a pointer to which to save the port (or protocol for RAW)
269 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
276 LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
284 *port = msg->msg.ad.port;
287 msg.msg.ad.port = port;
297 * Bind a netconn to a specific local IP address and port.
303 * @param port the local port to bind the netconn to (not used for RAW)
307 netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port)
334 API_MSG_VAR_REF(msg).msg.bc.port = port;
343 * Bind a netconn to a specific interface and port.
369 * Connect a netconn to a specific remote IP address and port.
373 * @param port the remote port to connect to (no used for RAW)
377 netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
394 API_MSG_VAR_REF(msg).msg.bc.port = port;
893 buf->port = 0;
912 * Send data (in form of a netbuf) to a specific remote IP address and port.
918 * @param port the remote port to which to send the data
922 netconn_sendto(struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port)
926 buf->port = port;