Home > Back-end >  Written in Delphi programs, to the server-side data, through a socket connection, sending three data
Written in Delphi programs, to the server-side data, through a socket connection, sending three data

Time:09-19

In order to realize the process is: (return recbuf byte array)
1. Send a $0401, state1 return status values, and traidid; ($0401, state1, is 4 bytes, traidid2 bytes)
2. Send the card information, return state2; (state2 is 4 bytes)
3. Send the empty card information, as the end, return state3; (state3 is 4 bytes)

I connected the socket,
1. The first return recbuf, take state1=recbuf1 0 to 3 bytes, at this time of the server is sending a message delay, how do you take this delay on my side, sleep, no matter with it?
2. The second time sending data receiving array recbuf2, if I take his status value, began taking recbuf2 byte 0? By this time have any delay?

Below is sent $0401 for the first time, the second time send to send the picture of the card information:


CodePudding user response:

CodePudding user response:

This to the server, providing interface standards, through the receiving data transfer function,
  • Related