Hello folks,
I have a question about multicasting using QUdpSocket.
I am required to implement an event based IPC mechanism. One process should signal events, arbitrary other processes should be able to receive those.
My idea would be to implement a multicast sender to post events and a multicast receiver to receive those events. The message
to be transmitted itself would be serialized using QDataStream with the following byte stream format:
quint(nr of bytes to send) QString(channel name) QString(message name) QByteArray(payload)
Can there occur a problem if the multicast sender transmits the data stream and a client joins the group somewhere in time after the server has sent the first
bytes and before all bytes have been sent? In other words, does the client need to synchronize somehow on the received data?
thanks in advance,
michael




Reply With Quote

Bookmarks