The udp_close function closes the UDP socket
identified in the function argument. After calling the
udp_close function, the UDP socket cannot send or receive any
data packet.
The udp_close function is in the RL-TCPnet library. The
prototype is defined in rtl.h.
note
After closing the UDP socket, you can reopen it using the
udp_open function.
The UDP socket still reserves memory after calling the
udp_close function. Hence, if you do not need the socket,
you must release the memory using the udp_release_socket
function after calling udp_close.
Return Value
The udp_close function returns __TRUE if the UDP socket is
successfully closed. Otherwise, the function returns __FALSE.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.