🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5555

socket reset

#5555
From: 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!
Technical Details
Message-ID: <4111aaf6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,851c52eaeecbcfc7,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "p Anders" <paul.anderson@jhuapl.edu>
From: "p Anders" <paul.anderson@jhuapl.edu>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: socket reset
Date: Wed, 4 Aug 2004 23:35:20 -0400
Lines: 17
Organization: JHU/APL
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 128.244.21.67
Message-ID: <4111aaf6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091676918 128.244.21.67 (4 Aug 2004 20:35:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail