开发者

How to simulate a dial-up connection for testing purposes?

开发者 https://www.devze.com 2023-01-04 02:42 出处:网络
I have to code a server app where clients open a TCP/IP socket, send some data and close the connection.

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开发者_JS百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号