I need testing tips
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开发者_Python百科 to be able to debug both instances.
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...
精彩评论