lwIP 2.2.1
Lightweight IP stack
Loading...
Searching...
No Matches

Functions

err_t netconn_disconnect (struct netconn *conn)
err_t netconn_sendto (struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port)
err_t netconn_send (struct netconn *conn, struct netbuf *buf)

Detailed Description

UDP only functions

Function Documentation

◆ netconn_disconnect()

err_t netconn_disconnect ( struct netconn * conn)

Disconnect a netconn from its current peer (only valid for UDP netconns).

Parameters
connthe netconn to disconnect
Returns
See err_t

◆ netconn_send()

err_t netconn_send ( struct netconn * conn,
struct netbuf * buf )

Send data over a UDP or RAW netconn (that is already connected).

Parameters
connthe UDP or RAW netconn over which to send data
bufa netbuf containing the data to send
Returns
ERR_OK if data was sent, any other err_t on error

◆ netconn_sendto()

err_t netconn_sendto ( struct netconn * conn,
struct netbuf * buf,
const ip_addr_t * addr,
u16_t port )

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).

Parameters
connthe netconn over which to send data
bufa netbuf containing the data to send
addrthe remote IP address to which to send the data
portthe remote port to which to send the data
Returns
ERR_OK if data was sent, any other err_t on error