© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
FirstGearGames

❔ Socket.Connected for listening sockets?

The Socket class contains a
Connected
Connected
property, but not
Listening
Listening
. I'm trying to check for a break in connectivity when a socket is listening.
EG: if a client connects to a server then
Connected
Connected
is true, and will become false when the client disconnects.
I'm not finding an equivalent for when the server is listening, or if the socket is somehow dropped.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ winform sockets
C#CC# / help
2y ago
❔ Sockets - TCP
C#CC# / help
4y ago
System.InvalidOperationException The operation is not allowed on non-connected sockets
C#CC# / help
4y ago
✅ System.Net.Sockets.SocketException (10048): Only one usage of each socket address
C#CC# / help
12mo ago