You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
1 month ago
|
/*
|
||
|
Sog 游戏基础库
|
||
|
2016 by zouwei
|
||
|
*/
|
||
|
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
using System.Runtime.Serialization;
|
||
|
|
||
|
using Sog;
|
||
|
|
||
|
namespace Gate
|
||
|
{
|
||
|
public class MessageLimitInfo
|
||
|
{
|
||
|
public int Id;
|
||
|
public int limitCount;
|
||
|
}
|
||
|
|
||
|
public class GateServerConfig
|
||
|
{
|
||
|
public int listenport;
|
||
|
|
||
|
//后端连接的逻辑服务器的类型
|
||
|
public int backEndServerType;
|
||
|
|
||
|
//是否校验seq 序列号
|
||
|
public bool checkSeq;
|
||
|
|
||
|
//是否校验流量
|
||
|
public bool checkFlow;
|
||
|
public int checkFlowSecCd; //流量检测时间间隔 单位秒
|
||
|
public int limitMessageNum; //限制消息数量
|
||
|
public int limitMessageLenth; //限制消息长度
|
||
|
public int maxLimitTimes; //最大达到限制次数
|
||
|
public MessageLimitInfo[] messageLimitList; //消息限制
|
||
|
public int[] messageIgnoreLimitList;
|
||
|
|
||
|
// 消息大小超过zipMsgSize时进行压缩
|
||
|
public int zipMsgSize;
|
||
|
|
||
|
// gate网络模式可以与其他模块区分开
|
||
|
public int netMode;
|
||
|
|
||
|
// gate异步模式下 StartAsyncAccept 最大递归数
|
||
|
public int maxAsyncRecursionCount;
|
||
|
|
||
|
public int maxClientCount;//最大客户端连接数
|
||
|
|
||
|
public int websocketport; // websocket服务的端口
|
||
|
public bool websocketSecure; // 是否使用wss
|
||
|
public string certificatePath; // 证书的路径
|
||
|
public string certificatePassword; // 证书的密码
|
||
|
}
|
||
|
}
|