TCPIP_ANNOUNCE_MESSAGE_CALLBACK Type
C
typedef void (* TCPIP_ANNOUNCE_MESSAGE_CALLBACK)(TCPIP_NET_HANDLE hNet, UDP_SOCKET s);
Description
Type: TCPIP_ANNOUNCE_MESSAGE_CALLBACK - Prototype of an announce callback function that can be registered by the user. This callback will be called by the announce module when sending a broadcast message.
Remarks
The callback function could use regular UDP calls to add its own data to the message. The UDP socket TX buffer has limited space and the standard announce message is in the buffer. The ammount of data that can be pushed is limited by the TCPIP_ANNOUNCE_MAX_PAYLOAD symbol. If the UDP socket TX buffer was not sufficient for storing the internal announce message, then the user part will be skipped.