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

时间:2023-03-09 14:57:44
介绍开源的.net通信框架NetworkComms框架 源码分析(一)ConnectionState

原文网址: 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
    }

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