| Summary |
#include <rtl.h>
BOOL udp_release_socket (
U8 socket); /* Socket handle to release. */
|
| Description | The udp_release_socket function releases the the socket identified in the function argument and de-allocates its memory. The udp_release_socket function is in the RL-TCPnet library. The prototype is defined in rtl.h. note - Once the socket is released, TCPnet can allocate the socket to another process.
- You must call the udp_release_socket function when you do not need the UDP socket any longer.
|
| Return Value | The udp_release_socket function returns __TRUE if the UDP socket is successfully released. Otherwise, the function returns __FALSE. |
| See Also | udp_close, udp_get_socket |
| Example |
#include <rtl.h>
void disconnect_udp (U8 udp_soc) {
..
/* This UDP connection is no longer needed */
udp_close (udp_soc);
udp_release_socket (udp_soc);
}
|