๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send buffer from server to a client

#4497
From: Remy Lebeau (TeamB)
Date: Fri, 28 Jan 2005 18:44
33 lines
2357 bytes
"Vin๏ฟฝcius" <vgalo2000@yahoo.com.br> wrote in message
news:41fa2c3c$1@newsgroups.borland.com...

>     I'm gonna try to explaim in details what I trying to do. The real
> two aplicantiion that i'm trying to do (Server/Client), talk's on two
> directions with messages (that buffers that I refer), and this messages
> is sent asynchronously at on time (that I don't know when), the server
> sends this message for the client, and the client must read that and
> process this message. And the client also send this messages
> asynchronously for the server, then the server must read this and process.

It has already been explained how to accomplish that.

> but the opposite way, I don't know how to make a button (on the server)
> that when is clicked, write on the IndyBuffer, and the client read (In
> some methot or event) and process the message.~

That has already been explained.  I even gave you example code for it.

> I have to use the TIdPeerThread outside this events???

If you want to access the Connection from outside the event handlers, then
yes.  Unless you use the OnConnect and OnDisconnect events to keep track of
your own list of Connections manually.

> what is "ActiveThreads property"??

Sorry, I meant the Threads property, not the ActiveThreads.  ActiveThreads
is a property of TIdThreadMgr instead.


Gambit
Technical Details
Message-ID: <41fa8779$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41f90c54@newsgroups.borland.com> <41f93966$1@newsgroups.borland.com> <41fa2c3c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2b30b06ce9be7f64
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41f90c54@newsgroups.borland.com> <41f93966$1@newsgroups.borland.com> <41fa2c3c$1@newsgroups.borland.com>
Subject: Re: Send buffer from server to a client
Date: Fri, 28 Jan 2005 10:44:47 -0800
Lines: 35
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: <41fa8779$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106937721 68.69.17.41 (28 Jan 2005 10:42:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail