Sockets
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hello i have a program using a TcpListener and x number of Sockets each has thier own thread my real question is how to i determine if the sockets have lose thier connection i have a thread that handles the sockets connection and determines if the user has sent any data or not and then passes it off to the main thread. i tried using Socket.Connected but it didnt do anything i have a try block within the user thread and i tried using catching a SocketException but that didnt work either what are your suggestions thanks