On 29/01/2017 at 09:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 17-18
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I can't get my head wrapped around on how to detect a closed TCP connection that has been made via OpenWaitForIncoming / OpenListener.
Is there any chance to retrieve a connection's state?
It'd be possible to send custom bytes (ASCII chars) and filter them, but that does not work e.g. for terminals or other 3rd-party connections.
edit: Couldn't test yet, but will BytesInInputBuffer return 0 if the connection is not present?