2025-07-08 14:01:10 +08:00

18 lines
603 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yunda.SOMS.OperationsMainSiteGatewayServer.TcpSocket.Server
{
public static class ConstValue
{
public const byte StartByte = 0x16; // 开始位
//public const byte EndByte = 0x86; // 结束位
public const int LengthFieldSize = 2; // 数据长度字段的大小4字节
public static readonly string HeartbeatMessage = "heartbeat";
public static readonly TimeSpan HeartbeatInterval = TimeSpan.FromSeconds(10);
}
}