|
发表于 2020-3-5 19:39:44
|
显示全部楼层
来自 中国–四川–成都
如果你服务器是47/48兼容的话试试将:
- request(Constants.A2S_INFO_REQUEST);
- var response = fetchResponse();
- var byteReader = response.GetByteReader();
- byte header = byteReader.GetByte();
- if (header != 0x49)
- throw new ArgumentException("The fetched Response is no A2S_INFO Response.");
复制代码
改成
- request(Constants.A2S_INFO_REQUEST);
- var response = fetchResponse();
- var byteReader = response.GetByteReader();
- byte header = byteReader.GetByte();
- if (header != 0x49)
- {
- response = fetchResponse();
- byteReader = response.GetByteReader();
- header = byteReader.GetByte();
- if (header != 0x49)
- throw new ArgumentException("The fetched Response is no A2S_INFO Response.");
- }
复制代码 |
|