🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Server and Client Sockets

#3423
From: Remy Lebeau (TeamB)
Date: Mon, 03 Oct 2005 22:18
26 lines
1974 bytes
"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: <4341ae16$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433e524d$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <433e524d$1@newsgroups.borland.com>
Subject: Re: Server and Client Sockets
Date: Mon, 3 Oct 2005 15:18:37 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4341ae16$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128377878 68.69.17.41 (3 Oct 2005 15:17:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail