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()
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.
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()
udp_bind()::ipcb udp_bind()::rebind all items filtered out
Type of udp_bind()
udp_bind()