Article View: borland.public.cppbuilder.internet.socket
Article #5722Re: Linux and Windows compatible Client/Server apps using UDP and TCP/IP without any components?
From: Chad Z. Hower aka Kudzu
Date: Wed, 28 Apr 2004 20:10
Date: Wed, 28 Apr 2004 20:10
40 lines
3084 bytes
3084 bytes
"Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote in
news:408fdf4f$1@newsgroups.borland.com:
> Which code? The code of the library? This is the problem of library
> developer, not user's problem. An all in all I can't see any problem
> with the code like
Users code - the library cannot isolate them very much from a non blocking
architecture.
> while not TerminateOperation do
> select(1, FSocket, nil, nil, 10);
> if not TerminateOperation then
> read(FSocket...);
>
> I don't think this (3 extra lines) severely complicates the code.
Thats a very simplict example. You have no logic there. Its the same reason
nearly all implementations are much less complex when implemented as blocking
on Windows vs non blocking on Windows. No state machine is needed.
> To make it clear: for experiments I turned our ElSSLIOHandler (and in
> this way indy itself) to completely non-blocking with about 10 or 15
> extra lines of code. Should one provide NonBlockingIOHandler for you to
> believe that this is NOT severely complicated?
Its a simple transport stream. These are rare.
Most users are writing servers with logic in them - that is a very big
difference.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Want more Indy stuff? Try the Atozed Indy Portal at
http://www.atozedsoftware.com/
* More Free Demos
* Free Articles
* Extra Support
Technical Details
Message-ID:
<Xns94D9EBC9F3C5Bcpub@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!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> <Xns94D8666CA914Bcpub@127.0.0.1> <408e168e@newsgroups.borland.com> <Xns94D8A2AD83860cpub@127.0.0.1> <408f59a4$1@newsgroups.borland.com> <Xns94D9792CD8562cpub@127.0.0.1> <408fdf4f$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-28 13:40:30 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> <Xns94D8666CA914Bcpub@127.0.0.1> <408e168e@newsgroups.borland.com> <Xns94D8A2AD83860cpub@127.0.0.1> <408f59a4$1@newsgroups.borland.com> <Xns94D9792CD8562cpub@127.0.0.1> <408fdf4f$1@newsgroups.borland.com> Organization: Atozed Software Message-ID: <Xns94D9EBC9F3C5Bcpub@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: 39 Date: Wed, 28 Apr 2004 23:10:44 +0300 NNTP-Posting-Host: 83.168.2.248 X-Trace: newsgroups.borland.com 1083183108 83.168.2.248 (28 Apr 2004 13:11:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!Kudzu