Article View: borland.public.cppbuilder.internet.socket
Article #3801Re: Creating sockets
From: Jonathan Benedicto
Date: Fri, 29 Apr 2005 01:31
Date: Fri, 29 Apr 2005 01:31
28 lines
1941 bytes
1941 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:42718c45$1@newsgroups.borland.com... > Why are you using that code? You don't need it. It doesn't gain > you > anything that you can't simply do directly: MS wrote all this code in their PSDK IOCP server example, so I copied most of it. I'll change that though, thank you. > Why are you setting the sending buffer size to 0? To quote from their code comments, that I chopped out : <quote> Disable send buffering on the socket. Setting SO_SNDBUF to 0 causes winsock to stop buffering sends and perform sends directly from our buffers, thereby reducing CPU usage. However, this does prevent the socket from ever filling the send pipeline. This can lead to packets being sent that are not full (i.e. the overhead of the IP and TCP headers is great compared to the amount of data being carried). Disabling the send buffer has less serious repercussions than disabling the receive buffer. </quote> Jonathan
Technical Details
Message-ID:
<42718e72$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42717e9e$1@newsgroups.borland.com> <42718c45$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,890efe40447445cf X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <incorrect@no.server> Newsgroups: borland.public.cppbuilder.internet.socket References: <42717e9e$1@newsgroups.borland.com> <42718c45$1@newsgroups.borland.com> Subject: Re: Creating sockets Date: Thu, 28 Apr 2005 21:31:31 -0400 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 69.158.104.124 Message-ID: <42718e72$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114738290 69.158.104.124 (28 Apr 2005 18:31:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail