LwIP + 0/8 examples
CodeScope will show references to udp_bind() from the following samples and libraries:
Examples
STM32469I_EVAL
Applications
LwIP
STM324x9I_EVAL
Applications
LwIP
STM324xG_EVAL
Applications
LwIP
 
Symbols
loading...
Files
loading...

udp_bind() function

Bind an UDP PCB. ipaddr & port are expected to be in the same byte order as in the pcb. @see udp_disconnect()

Syntax

err_t udp_bind (struct udp_pcb *pcb,     const ip_addr_t *ipaddr,     u16_t port);
Implemented in udp.c:931

Arguments

pcb

UDP PCB to be bound with a local address ipaddr and port.

ipaddr

local IP address to bind with. Use IP_ANY_TYPE to bind to all local interfaces.

port

local UDP port to bind with. Use 0 to automatically bind to a random port between UDP_LOCAL_PORT_RANGE_START and UDP_LOCAL_PORT_RANGE_END.

Return value

lwIP error code. - ERR_OK. Successful. No error occurred. - ERR_USE. The specified ipaddr and port are already bound to by another UDP PCB.

Examples

udp_bind() is referenced by 8 libraries and example projects.

Call Tree

Functions calling udp_bind()
Functions called by udp_bind()
udp_bind()
printf()
all items filtered out
Data read by udp_bind()
Data written by udp_bind()
udp_bind()
Type of udp_bind()
udp_bind()
all items filtered out