码迷,mamicode.com
首页 > Web开发 > 详细

介绍开源的.net通信框架NetworkComms框架 源码分析(一)ConnectionState

时间:2016-08-30 09:21:58      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

原文网址: http://www.cnblogs.com/csdev

Networkcomms 是一款C# 语言编写的TCP/UDP通信框架  作者是英国人  以前是收费的 目前作者已经开源  许可是:Apache License v2

开源地址是:https://github.com/MarcFletcher/NetworkComms.Net

 public enum ConnectionState
    {
        /// <summary>
        /// The state of this connection is undefined. This is the starting state of new connections.
        /// 未定义   初始状态
        /// </summary>
        Undefined,

        /// <summary>
        /// The connection is in the process of being established/initialised.
        /// 建立中
        /// </summary>
        Establishing,

        /// <summary>
        /// The connection has been successfully established.
        /// 创建完成
        /// </summary>
        Established,

        /// <summary>
        /// The connection has been shutdown.
        /// 关闭
        /// </summary>
        Shutdown
    }

这各类是个枚举类,用来判定连接的状态

 

介绍开源的.net通信框架NetworkComms框架 源码分析(一)ConnectionState

标签:

原文地址:http://www.cnblogs.com/csdev/p/5820504.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!