一款简单易用的基础网络通讯组件库。

RelayStatus 枚举

中继状态码

Definition

命名空间: TouchSocket.Dmtp.Relay
程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public enum RelayStatus

成员

Unknown0 未知状态
Success1 成功
ClientNotFound2 客户端未找到
RoutingNotAllowed3 路由不允许
RemoteRefused4 远程拒绝
ConnectionTimeout5 连接超时
DataTransferFailed6 数据传输失败
PortAlreadyRegistered7 端口已注册
PortNotRegistered8 端口未注册
ConnectionNotExists9 连接不存在
InvalidParameter10 参数无效
InternalError11 内部错误
ConnectionClosed12 连接已关闭
Unauthorized13 未授权
ResourceInsufficient14 资源不足
OperationTimeout15 操作超时

扩展方法

GetAttributeT 获取枚举成员上绑定的指定类型的自定义属性。
(由 SystemExtension 定义。)
GetDescription 获取状态描述
(由 RelayStatusExtension 定义。)
GetDescription 获取资源字符
(由 StringResStore 定义。)
IsSuccess 判断是否为成功状态
(由 RelayStatusExtension 定义。)

参见