jkrishnaworks
Programmer
Dear Experts,
I am a newbie in the Delphi Socket Programming. Currently I use Delphi 7 to create an interface to a remote server for sending and receiving information. I used 'NetChat' demo program as a model.
In the form, I created a TcpClient object and set the 'remotehost' and 'remoteport' with appropropriate values. I'm currently able to send any text messages to the server (which is not a Delphi server program) without any issues. The remote server is able to parse the sent message and process it. Then, the remote server sends the response/acknowledgement back to the client (which is my program) in the socket connection.
For some reason, OnReceive() method of the TcpClient object does not get triggered for the incoming response from the server.
Has anyone seen this problem and have a solution?
Please let me know what I'm doing wrong.
Thanks much, JK
I am a newbie in the Delphi Socket Programming. Currently I use Delphi 7 to create an interface to a remote server for sending and receiving information. I used 'NetChat' demo program as a model.
In the form, I created a TcpClient object and set the 'remotehost' and 'remoteport' with appropropriate values. I'm currently able to send any text messages to the server (which is not a Delphi server program) without any issues. The remote server is able to parse the sent message and process it. Then, the remote server sends the response/acknowledgement back to the client (which is my program) in the socket connection.
For some reason, OnReceive() method of the TcpClient object does not get triggered for the incoming response from the server.
Has anyone seen this problem and have a solution?
Please let me know what I'm doing wrong.
Thanks much, JK