05/25/2016 8:21 AM
post116328
|
UDP is connectionless, hence there is no such thing.
So, You have to handle such case by hand :-)
You can implements a 'disconnect' message to send from one side to the other
to do a clear disconnection, or You can add a hert-beat messages every xx seconds
to be sure connection is still up....
Or You can use a TCP/IP socket paired to Your UDP socket used for low trafic data, and other stuffs:
If the TCP side of the connection disconnects, it's safe to assume the UDP connection did too.
bye
M.Sangalli
|
|
|