using WIDESEAWCS_Core.Core;
namespace WIDESEAWCS_Tasks.SocketServer
{
///
/// Socket·þÎñ¶ËÅäÖÃ
///
public class SocketServerOptions : IConfigurableOptions
{
///
/// ÊÇ·ñÆôÓÃ
///
public bool Enabled { get; set; } = true;
///
/// ¼àÌý¶Ë¿Ú
///
public int Port { get; set; } = 2000;
///
/// ¼àÌýµØÖ·
///
public string IpAddress { get; set; } = "0.0.0.0";
///
/// Á¬½Ó¶ÓÁ㤶È
///
public int Backlog { get; set; } = 100;
///
/// Îı¾±àÂëÃû³Æ£¨ÀýÈç: utf-8, gbk£©
///
public string EncodingName { get; set; } = "utf-8";
///
/// ÊÇ·ñ×Ô¶¯¼ì²â±àÂ루³¢ÊÔ UTF-8 ºó»ØÍ˵½ GBK£©
///
public bool AutoDetectEncoding { get; set; } = true;
///
/// ¿Í»§¶Ë¿ÕÏг¬Ê±Ê±¼ä£¨Ã룩£¬³¬¹ýÔò¶Ï¿ª
///
public int IdleTimeoutSeconds { get; set; } = 300;
///
/// ÊÇ·ñÆôÓÃÐÄÌø¼ì²é
///
public bool EnableHeartbeat { get; set; } = true;
///
/// ÈÕÖ¾Îļþ·¾¶£¨Ïà¶ÔÓÚ³ÌÐòÔËÐÐĿ¼£©
///
public string LogFilePath { get; set; } = "socketserver.log";
}
}