Article View: borland.public.cppbuilder.internet.socket
Article #5808Re: Linux and Windows compatible Client/Server apps using UDP and TCP/IP without any components?
From: Chad Z. Hower aka Kudzu
Date: Tue, 27 Apr 2004 07:10
Date: Tue, 27 Apr 2004 07:10
27 lines
2349 bytes
2349 bytes
"Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote in
news:408d7e2a$1@newsgroups.borland.com:
> Hmm, I will re-phrase. It is not a good idea (despite it's common) to
> fork or to create threads. Using non-blocking sockets with select() is
> more effectie from performance point of view.
I shoudl also state that while on Windows IOCP is faster than blocking as
well, it suffers the same problems as non blocking on Linux does and is the
reason in most cases it is no used.
In short:
-Serialization
-Security
-Priority
-Ease of coding logic
In general blocking sockets are more than fast enough for 95% of the
requirements, and in teh other 5% often the above requirement exclude the use
of non blocking.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Is Indy useful to you? Send a postcard please!
http://www.hower.org/kudzu/indypost.html
Technical Details
Message-ID:
<Xns94D86789AB6E1cpub@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!KudzuReferences:
<408940c8$1@newsgroups.borland.com> <4089b966@newsgroups.borland.com> <Xns94D754C7FDA13cpub@127.0.0.1> <408cb3a2@newsgroups.borland.com> <Xns94D7D254D5B83cpub@127.0.0.1> <408d7e2a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11508e,7ff7d57992a0c98e X-Google-Thread: 1036eb,cc69d1fdd62435b3 X-Google-Thread: fc17a,58ba8da04ce4f6ff X-Google-Attributes: gid11508e,gid1036eb,gidfc17a,public X-Google-ArrivalTime: 2004-04-27 00:27:33 PST Newsgroups: borland.public.cppbuilder.internet.socket,borland.public.delphi.internet.winsock,borland.public.kylix.internet.sockets Subject: Re: Linux and Windows compatible Client/Server apps using UDP and TCP/IP without any components? From: "Chad Z. Hower aka Kudzu" <cpub@hower.org> References: <408940c8$1@newsgroups.borland.com> <4089b966@newsgroups.borland.com> <Xns94D754C7FDA13cpub@127.0.0.1> <408cb3a2@newsgroups.borland.com> <Xns94D7D254D5B83cpub@127.0.0.1> <408d7e2a$1@newsgroups.borland.com> Organization: Atozed Software Message-ID: <Xns94D86789AB6E1cpub@127.0.0.1> User-Agent: Xnews/5.04.25 via ELKNews 1.1 X-Face: '-Al!t=o!k-s4*bktmv/YpA=fm9"8xdyO,t[~R2]W/c%[qF:])&(mBp$XI^d:Tmlr&&>S;aBs0DIl;0Fv|\3fb(#vsf)1;[;m0x&<RC/,7]DSa Lines: 26 Date: Tue, 27 Apr 2004 10:10:41 +0300 NNTP-Posting-Host: 83.168.2.248 X-Trace: newsgroups.borland.com 1083049826 83.168.2.248 (27 Apr 2004 00:10:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!Kudzu