Hi Francois,
Thanks for the response.

"
Your second message comes later and is available from the OnDataAvailable
event handler at server side."

Is it possible to send this at the same time as it connects?
What I need is,
to combine both messages and get the ID and computer name.

"
You should store this per client information in the TTcpSrvClient class
(just add new members as you need). As long a the connection is alive,
TTcpSrvClient class instance will hold any value you store in it. In all
events the "client" argument point to the same instance."

I am not sure if understand this but?
I have an xml which is kind of database where I would like to keep the computer data and refresh the data everytime I get the "KEEPALIVE" message from the client which will tell me that client is working. Client is sending the keepalive data by informing it's name and from the name I will know who is alive and who is dead.

It will be easier for me if I could just combine the messages and insert the data into the xml because I don't know how to store the data in clientclass.

-----Original Message----- From: Francois PIETTE
Sent: Wednesday, May 11, 2011 4:16 PM
To: ICS support mailing
Subject: Re: [twsocket] Computer's name

First,
Server gives info of connected client with it's ip and the ID, the ID is very important for me because I need to use it for sending commands to the client.

Second,
Client sends a message where it tells it's name etc. when it is connected. I push client to send message to the server with lot of info.

What I would like to do is,
to combine these 2 messages together where I could get the ID and the computer name with all the other info I need from the client.
Is it any possible to do this?

If I understand correctly, what you name your first message is not really a
message, it is just the event triggered at server side when a client is
connection to the server. At that time, the client has still not send
anything.

Your second message comes later and is available from the OnDataAvailable
event handler at server side.

You should store this per client information in the TTcpSrvClient class
(just add new members as you need). As long a the connection is alive,
TTcpSrvClient class instance will hold any value you store in it. In all
events the "client" argument point to the same instance.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to