Article View: borland.public.cppbuilder.internet.socket
Article #5806Re: 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:04
Date: Tue, 27 Apr 2004 07:04
29 lines
2592 bytes
2592 bytes
"Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote in
news:408d7e2a$1@newsgroups.borland.com:
> non-blocking mode is the same on Windows and on Linux. It means only one
> thing - calls to certain functions (send, recv, select, accept, what
> else?) will return immediately with error EAGAIN (WSAEWOULDBLOCK) if
> they can't be performed. That's all.
But require polling, they dont send Windows messages which is how they are
normally used in Windows. Its very rare to use non blocking sockets in
Windows without using Windows messages, unless you are using overlapped I/O.
> 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.
Yes it is - but forking and block remains the most common way to work under
Unix for a variety of reasons. It is the "core" method and is not a hack by
any venture as the original poster claimed.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Want to keep up to date with Indy?
Join Indy News - it free!
http://www.atozed.com/indy/news/
Technical Details
Message-ID:
<Xns94D8666CA914Bcpub@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!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:09:31 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: <Xns94D8666CA914Bcpub@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: 28 Date: Tue, 27 Apr 2004 10:04:07 +0300 NNTP-Posting-Host: 83.168.2.248 X-Trace: newsgroups.borland.com 1083049437 83.168.2.248 (27 Apr 2004 00:03:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!Kudzu