🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#5802
From: Eugene Mayevski [SecureBlackbox]
Date: Mon, 26 Apr 2004 07:00
25 lines
2446 bytes
Chad Z. Hower aka Kudzu wrote:

> That being said - we are talking Linux. Linux natively supports blocking 
> sockets and its how nearly all servers are implemented. Thats hardly a 
> kludge.
> Linux does not support non blocking as Windows does. Instead in addition to 
> blocking sockets it has something more similar to overlapped I/O.

Chad, are you talking about synchronous/asynchronous or 
blocking/non-blocking? Linux does support non-blocking sockets using 
ioctl(O_NONBLOCK)

> Finally threads/forking is not kludge either. In fact Linux is full of them - 
> and just because something is often used with it does not make it a "kludge". 

In linux, where threads == processes (with some minor difference of 
threads having common memory), creation of threads takes additional time 
(not talking about the fact that it's impossible to debug secondary 
threads with Kylix or Kdbg or KDevelop's debugger).

-- 
Eugene Mayevski
EldoS Corp., CTO
Security and networking solutions
http://www.eldos.com
Technical Details
Message-ID: <408cb3a2@newsgroups.borland.com>
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!not-for-mail
References: <408940c8$1@newsgroups.borland.com> <4089b966@newsgroups.borland.com> <Xns94D754C7FDA13cpub@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 00:09:32 PST
Date: Mon, 26 Apr 2004 10:00:26 +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>
In-Reply-To: <Xns94D754C7FDA13cpub@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: <408cb3a2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082962850 82.144.222.199 (26 Apr 2004 00:00:50 -0700)
Lines: 26
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!not-for-mail