Hi,
I would like to know a convenient method to send a text string in unaltered form to a server(this is not a delphi server), and then receiving the servers reply which is in the same format, a non terminated text string. The textstring might have carriage return and newline in the middle of the text, so I want to take care of the entire message.
Here is a code-snapshot from the client:
Client.Connect;
try
Client.Socket.Write(testString);
// Here, I am supposed to receive the reply from the server.
finally
Client.Disconnect;
end;
end;
I am sending the string correctly? And how can I receive the textstring from the server afterwards? I have tried the read methods from socket class, but they lock up, as in they seem to be polling there forever.
Thanks in advance, I appreciate your help.
I would like to know a convenient method to send a text string in unaltered form to a server(this is not a delphi server), and then receiving the servers reply which is in the same format, a non terminated text string. The textstring might have carriage return and newline in the middle of the text, so I want to take care of the entire message.
Here is a code-snapshot from the client:
Client.Connect;
try
Client.Socket.Write(testString);
// Here, I am supposed to receive the reply from the server.
finally
Client.Disconnect;
end;
end;
I am sending the string correctly? And how can I receive the textstring from the server afterwards? I have tried the read methods from socket class, but they lock up, as in they seem to be polling there forever.
Thanks in advance, I appreciate your help.