Do you send data regulary or with pauses? (How long are the pauses?)
In general you can not detect this with PB internal commands directly.
You can try to keep the connnection alive to avoid this, by sending periodically 'keep-alive' packets.
I'm not sure if you can detect via low level functions if a connection which was opened by PB can be checked.
OnErrorGoto(?ErrorHandler)
ClientID = 750154536 ;Random invalid Connection ID
sent = SendNetworkString(ClientID, "Hello"); Returns Invalid memory accesss
ErrorHandler:
;Error handling
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr