Oneself do server in indy, made the client sockettoolv debugging, the two sides connection is normal, but when sending data in the client, the server is unable to receive data, tested, and could not enter the TfrmMain. IdTCPServerExecute (AThread: TIdPeerThread) in this process, could you tell me how to reason, is a mystery,
Note: the intention is to want to do a server, can accept sockettoolv do what the client sends data, and the server can send data like sockettoolv,
CodePudding user response:
For network problems, at least, should prepare a debugging tool, not both sides with own developed software, all don't know where the problem.CodePudding user response:
Yes, I am the key server, for debugging tools is TCPUDP debugging assistant, sockettoolv25. Exe, the software can connect when the phenomenon, but can not accept the data, can't enter to TfrmMain. IdTCPServerExecute (AThread: TIdPeerThread) in this process,,, forget you and your guidanceCodePudding user response:
Need you to to get the data, in the process of IdTCPServerExecuteAThread. Connection. ReadBuffer (ABuf, AThread. Connection. ReadInteger);
CodePudding user response: