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
You can use a network emulator. If you have a Linux machine on hand with NISTnet (an old project but still useful, used some years ago) you can create multiple scnearios limiting bandwidth or other characteristics to the network communication. There is an application called WANEM which seems to do the same but I have not used it so cannot tell you if is good or not.
If you want a modem emulation the you can use com0com which provides exactly that.