Home > Back-end > Delphi TServerSocket, TClientSocket communication problems
Delphi TServerSocket, TClientSocket communication problems
Time:10-18
I use TServerSocket, TClientSocket realize communication, server deployment to the outside network, found that for the first time to send data to the server will take a long time before the server receives the nearly more than 10 seconds and send back as if will soon receive this how can handle can be solved? After the test is not a network problem, I through IdTCPServer this communication control can quickly received the client's message,
Two kinds of control are tested, is the most simple example, connect to the server and then sends a string message! Under the guidance of, very thank you!
Because TServerSocket has made some of the things, so don't want to change my control!
CodePudding user response:
TServerSocket controls is not recommended, recommended for TIdTCPServer, the better