networkComms.net2.3.1开源版本,基于gpl V3协议。因为不能公开3.x版本的源码,所以基于此版本进行学习。3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大。
/*请注意使用以下代码,需遵循GplV3协议*/
//在英文网站上购买 九折折扣代码: NCDN_PRCLW
using System;
using System.Collections.Generic;
using System.Text;
namespace DPSBase
{
/// <summary>
/// 自定义属性 --用来跟踪序列化器和数据处理器
/// </summary>
[System.AttributeUsage(AttributeTargets.Class)]
public class DataSerializerProcessorAttribute : System.Attribute
{
/// <summary>
/// 一个字节ID
/// </summary>
public byte Identifier { get; private set; }
/// <summary>
/// 建立一个属性相关的实例
/// </summary>
/// <param name="identifier"></param>
public DataSerializerProcessorAttribute(byte identifier)
{
this.Identifier = identifier;
}
}
}
http://www.cnblogs.com/networkcomms
http://www.networkcoms.cn 编辑
来自英国剑桥的c#网络通讯框架 开源版本: networkcomms2.3.1 可以进入此页面下载 networkcomms网络通讯框架学习
【模板下载】分享我所使用的数据库框架
【模板下载】innosetup 制作.net安装包的模板
【模板下载】分享我所使用的数据库框架