🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5805

Re: Linux and Windows compatible Client/Server apps using UDP and TCP/IP without any components?

#5805
From: Eugene Mayevski [SecureBlackbox]
Date: Mon, 26 Apr 2004 21:24
25 lines
2599 bytes
Chad Z. Hower aka Kudzu wrote:

>>Chad, are you talking about synchronous/asynchronous or 
>>blocking/non-blocking? Linux does support non-blocking sockets using 
>>ioctl(O_NONBLOCK)
> Yes, I mentioned then. They are "non blocking" but not the same as on 
> Windows. They are more like overlapped I/O.

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.

> Yes, thats why I said threads/fork where forking on Unix is much more common, 
> alhtough threading is becoming quite common as well.

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.

-- 
Eugene Mayevski
EldoS Corp., CTO
Security and networking solutions
http://www.eldos.com
Technical Details
Message-ID: <408d7e2a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <408940c8$1@newsgroups.borland.com> <4089b966@newsgroups.borland.com> <Xns94D754C7FDA13cpub@127.0.0.1> <408cb3a2@newsgroups.borland.com> <Xns94D7D254D5B83cpub@127.0.0.1>

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-26 14:39:27 PST
Date: Tue, 27 Apr 2004 00:24:29 +0300
From: "Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org>
Organization: EldoS Corporation
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, ru, en
MIME-Version: 1.0
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?
References: <408940c8$1@newsgroups.borland.com> <4089b966@newsgroups.borland.com> <Xns94D754C7FDA13cpub@127.0.0.1> <408cb3a2@newsgroups.borland.com> <Xns94D7D254D5B83cpub@127.0.0.1>
In-Reply-To: <Xns94D7D254D5B83cpub@127.0.0.1>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 82.144.222.199
Message-ID: <408d7e2a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1083014698 82.144.222.199 (26 Apr 2004 14:24:58 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail