Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: FContextList problems Indy10.1.5

www.cryer.info
Managed Newsgroup Archive

Re: FContextList problems Indy10.1.5

Subject:Re: FContextList problems Indy10.1.5
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Sun, 4 Jun 2006 23:40:05

"Jacques" <jacques.noah@btinternet.com> wrote in message
news:44823c37$1@newsgroups.borland.com...

> I'm having problems retrieving a list of names of connected clients.

That is because you are not doing it correctly to begin with.

> when the list arrives at the requesting client only ONE of the many
> client names is shown.

Given the limited code that you have shown so far, there are two
possibilities:

1) there is only 1 client in your list to begin with.

2) the client's reading code is wrong.

Since you have not specified how many clients are actually connected to your
server at the time, or when SendNick() is being called, or shown how the
client is reading back the list, there is no way to diagnose your problem
further.  Please provide more details, and more complete code snippets.

> FMsg is the entire 'list' sent by the server

The server is sending the list as multiple strings, but the statement above
suggests that you are processing the list as one big string instead.  The
code you showed for processing FMsg is not setup for multiple lines, unless
you are calling it in a loop that you have not shown yet.

> Should i be creating a tstringlist to recieve the list on the client side?

That would be a good thing to do, considering that you are sending the list
as multiple strings to begin with.  Indy does have methods available for
reading/writing TStrings objects.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive