14 Star 55 Fork 32

NtripShare/NtripShareBase

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DisconnectReason.cs 927 Bytes
一键复制 编辑 原始数据 按行查看 历史
NtripShare 提交于 2021-01-07 23:26 +08:00 . 初始版本
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace WatsonTcp
{
/// <summary>
/// Reason why a client disconnected.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum DisconnectReason
{
/// <summary>
/// Normal disconnection.
/// </summary>
[EnumMember(Value = "Normal")]
Normal = 0,
/// <summary>
/// Client connection was intentionally terminated programmatically or by the server.
/// </summary>
[EnumMember(Value = "Kicked")]
Kicked = 1,
/// <summary>
/// Client connection timed out; server did not receive data within the timeout window.
/// </summary>
[EnumMember(Value = "Timeout")]
Timeout = 2
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/ntripshare/ntrip-share-base.git
git@gitee.com:ntripshare/ntrip-share-base.git
ntripshare
ntrip-share-base
NtripShareBase
master

搜索帮助