🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Server and Client Sockets

#3279
From: Paul
Date: Tue, 04 Oct 2005 19:03
44 lines
2313 bytes
Thanks for all your input.

All of you have mentioned adding a message Q to the thread, where can I get 
info on this?

Thanks

Paul

PS. I will look at the indy project site also.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4341ae16$3@newsgroups.borland.com...
>
> "Paul" <plmacca@clara.co.uk> wrote in message
> news:433e524d$1@newsgroups.borland.com...
>
>> I've written some classes to wrap the server and client components
>> (and serial) to create some connectivity classes.
>
> You might consider using a pre-written library that already does all of 
> that
> for you.  Indy (http://www.indyproject.org), for instance.  In particular,
> due to Indy's plugin architecture, adding serial port support would take
> minimal effort.
>
>
>> But if I try to instantiate the class(es) in a thread, then only the
> serial
>> connectivity works.  The server and client socket fail (such as it never
>> gets the events to show client connecting or connected).
>
> Non-blocking notifications are message-based.  Thus your thread would need
> its own message queue to dispatch the notifications properly.  If that 
> does
> not suit your needs, then you will have to use blocking sockets instead,
> which means that you will not need a message queue at all, but you will
> likely have to re-think your read/writing strategy a bit.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <4342c2c8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <433e524d$1@newsgroups.borland.com> <4341ae16$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dc3706a89a245de9
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul" <plmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <433e524d$1@newsgroups.borland.com> <4341ae16$3@newsgroups.borland.com>
Subject: Re: Server and Client Sockets
Date: Tue, 4 Oct 2005 19:03:04 -0000
Lines: 46
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; Original
NNTP-Posting-Host: 86.132.252.236
Message-ID: <4342c2c8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128448712 86.132.252.236 (4 Oct 2005 10:58:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail