netconn_sendto() is only used within LwIP.
 
Symbols
loading...
Files
loading...

netconn_sendto() function

Send data (in form of a netbuf) to a specific remote IP address and port. Only to be used for UDP and RAW netconns (not TCP).

Syntax

err_t netconn_sendto(struct netconn *conn,     struct netbuf *buf,     const ip_addr_t *addr,     u16_t port);
Implemented in api_lib.c:921

Arguments

conn

the netconn over which to send data

buf

a netbuf containing the data to send

addr

the remote IP address to which to send the data

port

the remote port to which to send the data

Return value

ERR_OK if data was sent, any other err_t on error

References

LocationText
api_lib.c:922
netconn_sendto(struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port)
api.h:340
err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,

Call Tree

Functions called by netconn_sendto()
netconn_sendto()
all items filtered out
Data read by netconn_sendto()
Data written by netconn_sendto()
netconn_sendto()
all items filtered out
Type of netconn_sendto()
netconn_sendto()
all items filtered out