This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sending massive packets to a closed UDP client

Hi,

In my program, I established a full-duplex TCP communication with my PC via a router.

Fullscreen
1
2
3
4
5
6
Socket.SCK = netTCP_GetSocket (tcp_cb_func);
if (Socket.SCK >= 0)
{
netTCP_Listen (Socket.SCK , 5150);
netTCP_SetOption (Socket.SCK , netTCP_OptionTimeout, 5)
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The connection was functioning correctly. However, when a new client was added to the network switch and sent a 1K multicast packet to all connected devices, an unexpected issue arose. Although my program did not open any UDP sockets, the UDP event handler was an empty block, my program stopped working after some hours.  Should I do anything else that I wasn't aware of?

Fullscreen
1
2
3
uint32_t udp_cb_func (int32_t socket, const NET_ADDR *addr, const uint8_t *buf, uint32_t len) {
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0