🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: stThreadBlocking Vs stNonBlocking confusion

#4518
From: Steve Aletto
Date: Wed, 02 Feb 2005 13:24
24 lines
2335 bytes
Just my 2 cents:

> The problem is that even if I searched all google as You 
> suggested I only could find examples of Threadblocking 
> ServerSocket using the user made Threads with 
> TWinSocketStream, nothing using the common OnClientRead event!
Because it's the best way to handle sockets inside a thread. 
Forget socket events if you're using sockets inside a thread.

> I have even  bought a very expensive book C++B 5 dev's guide, 
> but it even does not speak about ThreadBlocking servers :(
You're right. Very good book, but not many information about 
sockets.

> Could you be so kind to correct my VERY simple project in 
> order to make it work fine?
Please follow Hans's suggestion and have a look at the Borland 
tutorial. Your project surely doesn't work, setting 
ServerType=stThreadBlocking is not enough at all to handle a 
thread-blocking socket! Where's the thread to begin with?

HTH,

Steve. 
Technical Details
Message-ID: <4200d48b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41fe906e@newsgroups.borland.com> <41fe99bf$1@newsgroups.borland.com> <41ff64b9@newsgroups.borland.com> <41ffbb99@newsgroups.borland.com> <41ffd3aa$1@newsgroups.borland.com> <4200a790@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4f7607071b9a8537
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
From: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41fe906e@newsgroups.borland.com> <41fe99bf$1@newsgroups.borland.com> <41ff64b9@newsgroups.borland.com> <41ffbb99@newsgroups.borland.com> <41ffd3aa$1@newsgroups.borland.com> <4200a790@newsgroups.borland.com>
Subject: Re: stThreadBlocking Vs stNonBlocking confusion
Date: Wed, 2 Feb 2005 14:24:37 +0100
Lines: 26
Organization: Steve Aletto
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 81.208.124.114
Message-ID: <4200d48b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107350667 81.208.124.114 (2 Feb 2005 05:24:27 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail