예제 #1
0
파일: ServerCenter.cs 프로젝트: ghrguse/ss
 /// <summary>
 /// 发送数据包到服务器
 /// </summary>
 /// <returns>The and back.</returns>
 /// <param name="stGSPkg"> 发送包 </param>
 /// <param name="tips"> 提示信息 </param>
 /// <param name="relatedCMD">对应回包id</param>
 /// <param name="isKeyProtocal"> 表示关键包会锁屏 </param>
 /// <param name="timeoutInterval"> 超时时间 </param>
 /// <param name="showTimeOut"> 不锁屏但是也要监听回包超时 </param>
 public int SendAndBack(CMSG stGSPkg, string tips = null, ushort relatedCMD = 0, bool isKeyProtocal = false, ushort timeoutInterval = 5, bool showTimeOut = false)
 {
     return(_gameSvrProtoUtil.SendAndBack(stGSPkg, tips, relatedCMD, isKeyProtocal, timeoutInterval, showTimeOut));
 }