🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
1 messages
1 total messages Started by p Anders Thu, 05 Aug 2004 03:35
socket reset
#5555
Author: p Anders
Date: Thu, 05 Aug 2004 03:35
15 lines
1694 bytes
I have implemented a TCP server.  It accepts clients and passes them off to
a separate thread to do the processing between client/server when a
connection is made.

What happends when the client disconnects?  I am getting a socket reset
somewhere but it doesn't seem to be on the socket I passed to the separate
thread - when I get the socket reset I call shutdown() and closesocket() on
the socket that gets it but this closes down the entire server rather than
simply closing out the specific client socket.  Does this make sense or am I
missing something here?  I am not using the Borland wrapper socket classes
but have instead wrapped my own socket class around the windows API.  I hope
someone can give me an idea as to what's going on even with the limited info
I am providing.

Thanks a million!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads