I have to code a server app where clients open a TCP/IP socket, send some data and close the connection.
The data packets are small < 100 bytes, however there is talk of having them batch their transactions and send multiple packets.
How can I best simulate a dial-up ut connection (using Delphi & Indy components, just FYI)?
Is it as simple as
- open connection
- wait a while (what is the definition of "a while"?)
- close connection