|
I use ClientSocket and serverSocket to communicate with both parties under c++ builder 6.0. When the client sends a message to the server, the server can receive it normally, but when the server sends a message to the client, the client is either in the onread() or onwrite() event I can’t receive the message. I added a button on the client and wrote it in its double-click event: Memo2->Lines->Add(ClientSocket1->Socket->ReceiveText()); The result is displayed correctly in the Memo2 control Message from the server!
This sentence should have been written in the onread() event, but why not?
Please advise! ! ! ! ! ! ! ! |
|