//////////////////////////////////////// //////////////////////////////////////// //////////
/*
Title: Use asynchronous Socket programming in C # To implement the C/S communication architecture of TCP network services (I) ---- Basic Library Section
When I see TcpListener and TcpClient in. NET, I am very happy, that is, the communication mode I want.
However, we can see that their power is too thin. We need a better class library to replace them.
The following provides some classes to complete the Tcp C/S communication mode. In the second part of this article, I will introduce how to use them.
The whole function is implemented through events:
Server events include:
Full Server
New client connection
Close Client
Received data
Events used by the client include:
Connected Server
Received data
Close connection
In addition, the encoder and the packet parser are provided for flexible processing of demand changes.
Note: This class library has not been strictly tested. If a Bug occurs, please send it to me. I will feel that your entire behavior is an encouragement and support to me.
*/
//////////////////////////////////////// //////////////////////////////////////// //////////
/// <Summary>
/// (C) 2003-2005 C2217 Studio
/// Retain all rights
///
/// File name: TcpCSFramework. cs
/// File ID:
/// Programming language: C #
/// File Description: basic class of the C/S communication architecture that provides TCP network services
/// (Using asynchronous Socket programming)
///// Current version: 1.1
/// Replace Version 1.0
///
/// Author: Deng yangjun
// EMail: dyj057@gmail.com
/// Creation date:
/// Last modification date: 2005-3-17
///
/// Historical modification records:
///
/// Time: 2005-3-14
/// Modify the content:
/// 1. Create an Ibms. Net. TcpCSFramework namespace and add a Session object.
/// 2. Modify the NetEventArgs class to adapt to the newly added object.
/// 3. added the session exit type, which is more suitable for actual scenarios.