我需要测试技巧
我正在 VS2010 中制作一个 C# 应用程序,它既可以充当客户端,也可以充当服务器(与自身的其他实例进行通信)。
我的问题是,在此类应用程序中测试网络的好方法是什么?
我可以在另一台计算机上发布并运行该应用程序,但我希望能够调试这两个实例。
I'm making a C# application in VS2010 that can act as both a client and a server (To communicate with other instances of itself).
My question is, what is a good way of testing the networking in such an application?
I can publish and run the application on another machine but I'd like to be able to debug both instances.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
测试技术
使用数据包嗅探器,例如Wireshark, 监控和分析数据包,例如其源和目标IP地址、MAC地址、端口号、协议等...对于* Nix 环境有 TCPdump。
使用 Wireshark 的基本指南
我还建议阅读Richard Blum C# Network编程书籍。有电子书副本可用。包含有关测试网络通信的有用信息...
Testing Techniques
Using Packet sniffers, such as Wireshark, to monitor and analysis packets, such as their source and destination IP addresses, MAC addresses, port numbers, protocols, etc... For a *Nix environment there's TCPdump.
A basic guide to using Wireshark
I would also recommended reading Richard Blum C# Network Programming Book. There's an Ebook copy available. Contains useful information about testing network communications...