Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须在 2 个场景中测试我的应用程序.....即 1. 连接发起者从服务器接收 FIN 2. 连接发起者将 FIN 发送到服务器
我有 www 服务器作为服务器,windows VM 作为客户端。我在 80 上做了 telnet 来模拟场景 1。但我需要模拟场景 2 ...请帮助我。
提前致谢
只需关闭套接字,或者如果必须,关闭套接字以在两端输出。这会发送一个 FIN。
但我不知道你为什么要测试这么低级的东西。您应该测试当您或对等方关闭套接字或将其关闭以输出时会发生什么:而不是 TCP 堆栈的操作。