Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : getting non-strings on server side of connection

www.cryer.info
Managed Newsgroup Archive

getting non-strings on server side of connection

Subject:getting non-strings on server side of connection
Posted by:"keyser" (keyser_so..@usa.com)
Date:15 Jul 2005 13:57:24

I have an indy TCPClient and TCPServer which are passing strings
and it is working.  I now have a new command which is a list of
integers and I was sending them from the client to the server as:

RemoteTCPClient.writeln('REMOTECXS ');
RemoteTCPClient.WriteInteger(length);
for i := 0 to length-1 do
  RemoteTCPClient.WriteInteger(data[i]);
if urgent then
  RemoteTCPClient.WriteInteger(1)
else
  RemoteTCPClient.WriteInteger(0);

Now, on the server in the command handler for 'REMOTECXS', how do
I extract these integers?

Thanks!

Replies:

www.cryer.info
Managed Newsgroup Archive