Article View: borland.public.cppbuilder.nativeapi
Article #15413Re: shutdown (s, SD_SEND)
From: Remy Lebeau (TeamB)
Date: Sat, 05 Jul 2003 00:22
Date: Sat, 05 Jul 2003 00:22
23 lines
1811 bytes
1811 bytes
"Tharun Pillay" <tharun@webmail.co.za> wrote in message news:3f05bbc0@newsgroups.borland.com... > From my understanding, this instruction would tell winsock to > close the socket once *all* the data enqueued in the socket > buffer is sent. Right? I don't know where you got that understanding from. First off, shutdown() does not ever close the socket at all. You need to use closesocket() for that instead. Second, specifying SD_SEND simply tells WinSock to disallow any further sends from that point on. The socket itself is still open and valid, and can still receive incoming data. > The problem is that FD_CLOSE is triggered before all the > data is sent - the first 8k are sent and then FD_CLOSE fires. > Anyone know why???? Please show a more complete code snippet that shows exactly what you are trying to do. Gambit
Technical Details
Message-ID:
<3f061924$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f05bbc0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7f7c8c74261a756b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-04 17:39:41 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f05bbc0@newsgroups.borland.com> Subject: Re: shutdown (s, SD_SEND) Date: Fri, 4 Jul 2003 17:22:19 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f061924$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057364260 207.175.226.26 (4 Jul 2003 17:17:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail