Home > Back-end >  Urgent help! Made of delphi7 indy server, made the client sockettoolv debugging, why can't rece
Urgent help! Made of delphi7 indy server, made the client sockettoolv debugging, why can't rece

Time:10-01

I just contact the Delphi, a rookie,
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 guidance

CodePudding user response:

Need you to to get the data, in the process of IdTCPServerExecute
AThread. Connection. ReadBuffer (ABuf, AThread. Connection. ReadInteger);

CodePudding user response:

reference fang098 reply: 3/f
need you yourself to get the data in the process of IdTCPServerExecute,
AThread. Connection. ReadBuffer (ABuf, AThread. Connection. ReadInteger);


Well, before I use Athread. Connection. AllData;
AThread. Connection. ReadLn;
To read, don't know why, it is not,,, with AThread. Connection. It is good that ReadBuffer, give advice or comments please,,,

CodePudding user response:

Athread. Connection. AllData; Way to read what you don't have the assignment to read data, read the next, try the following assignment before
AThread. Connection. RecvBufferSize
  • Related