Skip to content
Discussion options

You must be logged in to vote

You can't know that. You have to track it.

However, in practise you can know because all usage of a closed socket will throw an exception. So either track it yourself or rely on this exception.

In C++ you cannot do this, because C++ does not have a garbage collector so the socket dies when it closes so in C++ you have to track it yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
0 participants
Converted from issue

This discussion was converted from issue #371 on December 09, 2020 03:24.