文件名称:JBSocketServerTestSource
- 所属分类:
- TCP/IP协议栈
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 108kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Testing TCP and UDP socket servers using C# and .NETWhen you re developing a TCP/IP server application it s easy to test it poorly. It s easy to fire requests into a server, check the responses and assume that s enough. Even if you re testing using the actual production client application you may find that you are failing to fully test the server under heavy load or unusual network conditions. You may be using two or more machines, but your development network probably doesn t cause the kind of packet fragmentation and delays that you might encounter in the wild. Often when testing in the development environment your server only ever receives complete, distinct messages, and this can lead novice developers to assume that this is how it always is. As we pointed out in a previous article, the server developer is always responsible for breaking up the TCP byte stream into protocol specific chunks.
相关搜索: csharp
UDP
C#
UDP
Csharp
TCP
socket
c#
CSharp
Socket
udp
c#
TCP
C#
socket
TCP
socket
csharp
socket
UDP
UDP
C#
UDP
Csharp
TCP
socket
c#
CSharp
Socket
udp
c#
TCP
C#
socket
TCP
socket
csharp
socket
UDP
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SocketServerTest
................\EchoServerExTest
................\................\AssemblyInfo.cs
................\................\Configuration.cs
................\................\Conversation.cs
................\................\ConversationCreator.cs
................\................\EchoServerExTest.csproj
................\................\EchoServerExTest.csproj.vspscc
................\................\MessageExchange.cs
................\................\ServerTest.cs
................\................\Test Config Files
................\................\.................\EchoServerExTest.xml
................\................\.................\EchoServerExTest2.xml
................\................\.................\vssver.scc
................\................\vssver.scc
................\EchoServerTest
................\..............\AssemblyInfo.cs
................\..............\Configuration.cs
................\..............\Conversation.cs
................\..............\ConversationCreator.cs
................\..............\EchoServerTest.csproj
................\..............\EchoServerTest.csproj.vspscc
................\..............\MessageExchange.cs
................\..............\ServerSignOn.cs
................\..............\ServerTest.cs
................\..............\Test Config Files
................\..............\.................\EchoServerTest.xml
................\..............\.................\vssver.scc
................\..............\vssver.scc
................\LargePacketEchoServerTest
................\.........................\AssemblyInfo.cs
................\.........................\Configuration.cs
................\.........................\Conversation.cs
................\.........................\ConversationCreator.cs
................\.........................\LargePacketEchoServerTest.csproj
................\.........................\LargePacketEchoServerTest.csproj.vspscc
................\.........................\MessageExchange.cs
................\.........................\ServerSignOn.cs
................\.........................\ServerTest.cs
................\.........................\Test Config Files
................\.........................\.................\LargePacketEchoServerTest.xml
................\.........................\.................\vssver.scc
................\.........................\vssver.scc
................\PacketEchoServerTest
................\....................\AssemblyInfo.cs
................\....................\Configuration.cs
................\....................\Conversation.cs
................\....................\ConversationCreator.cs
................\....................\MessageExchange.cs
................\....................\MessageExchange2.cs
................\....................\PacketEchoServerTest.csproj
................\....................\PacketEchoServerTest.csproj.vspscc
................\....................\ServerSignOn.cs
................\....................\ServerTest.cs
................\....................\ServerTest2.cs
................\....................\Test Config Files
................\....................\.................\PacketEchoServerTest1.xml
................\....................\.................\PacketEchoServerTest2.xml
................\....................\.................\PacketEchoServerTest3.xml
................\....................\.................\PacketEchoServerTest4.xml
................\....................\.................\vssver.scc
................\....................\vssver.scc
................\SimpleProtocolServerTest
................\........................\AssemblyInfo.cs
................\........................\Configuration.cs
................\........................\Conversation.cs
................\........................\ConversationCreator.cs
................\........................\MessageExchange.cs
................\........................\ServerSignOn.cs
................\........................\ServerTest.cs
................\........................\SimpleProtocolS
................\EchoServerExTest
................\................\AssemblyInfo.cs
................\................\Configuration.cs
................\................\Conversation.cs
................\................\ConversationCreator.cs
................\................\EchoServerExTest.csproj
................\................\EchoServerExTest.csproj.vspscc
................\................\MessageExchange.cs
................\................\ServerTest.cs
................\................\Test Config Files
................\................\.................\EchoServerExTest.xml
................\................\.................\EchoServerExTest2.xml
................\................\.................\vssver.scc
................\................\vssver.scc
................\EchoServerTest
................\..............\AssemblyInfo.cs
................\..............\Configuration.cs
................\..............\Conversation.cs
................\..............\ConversationCreator.cs
................\..............\EchoServerTest.csproj
................\..............\EchoServerTest.csproj.vspscc
................\..............\MessageExchange.cs
................\..............\ServerSignOn.cs
................\..............\ServerTest.cs
................\..............\Test Config Files
................\..............\.................\EchoServerTest.xml
................\..............\.................\vssver.scc
................\..............\vssver.scc
................\LargePacketEchoServerTest
................\.........................\AssemblyInfo.cs
................\.........................\Configuration.cs
................\.........................\Conversation.cs
................\.........................\ConversationCreator.cs
................\.........................\LargePacketEchoServerTest.csproj
................\.........................\LargePacketEchoServerTest.csproj.vspscc
................\.........................\MessageExchange.cs
................\.........................\ServerSignOn.cs
................\.........................\ServerTest.cs
................\.........................\Test Config Files
................\.........................\.................\LargePacketEchoServerTest.xml
................\.........................\.................\vssver.scc
................\.........................\vssver.scc
................\PacketEchoServerTest
................\....................\AssemblyInfo.cs
................\....................\Configuration.cs
................\....................\Conversation.cs
................\....................\ConversationCreator.cs
................\....................\MessageExchange.cs
................\....................\MessageExchange2.cs
................\....................\PacketEchoServerTest.csproj
................\....................\PacketEchoServerTest.csproj.vspscc
................\....................\ServerSignOn.cs
................\....................\ServerTest.cs
................\....................\ServerTest2.cs
................\....................\Test Config Files
................\....................\.................\PacketEchoServerTest1.xml
................\....................\.................\PacketEchoServerTest2.xml
................\....................\.................\PacketEchoServerTest3.xml
................\....................\.................\PacketEchoServerTest4.xml
................\....................\.................\vssver.scc
................\....................\vssver.scc
................\SimpleProtocolServerTest
................\........................\AssemblyInfo.cs
................\........................\Configuration.cs
................\........................\Conversation.cs
................\........................\ConversationCreator.cs
................\........................\MessageExchange.cs
................\........................\ServerSignOn.cs
................\........................\ServerTest.cs
................\........................\SimpleProtocolS