System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。参数名: index
在system.throwhelper.throwargumetoutofrangeexception(exceptionargumentarument,exceptio...
在system.throwhe lper.throwargumetoutofrangeexception(exceptionargument arument,exceptionresource resource)
在system.bitcnverter.toint32(byte[] value, int32 startindex)
在system.bitcoverter.touint32(byte[] value, int32 startindex)
在conquer_online_server.主程式.gameserver_announcereceive(byte[] arg1, wrapper arg2,byte[] arg3) 位置:f:\conquer源码\conquer_online_server\主程式.cs:行号 305
try
{
Client.Exchange = false;
Client.Action = 1;
ushort position = 7;
uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4 ;
int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
int Len = BitConverter.ToInt32(arg1, position); position += 4;
byte[] pubKey = new byte[Len];
for (int x = 0; x < Len; x++)
pubKey[x] = arg1[x + position];
string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);
Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
}
行号305:uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4 ; 展开
在system.bitcnverter.toint32(byte[] value, int32 startindex)
在system.bitcoverter.touint32(byte[] value, int32 startindex)
在conquer_online_server.主程式.gameserver_announcereceive(byte[] arg1, wrapper arg2,byte[] arg3) 位置:f:\conquer源码\conquer_online_server\主程式.cs:行号 305
try
{
Client.Exchange = false;
Client.Action = 1;
ushort position = 7;
uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4 ;
int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
int Len = BitConverter.ToInt32(arg1, position); position += 4;
byte[] pubKey = new byte[Len];
for (int x = 0; x < Len; x++)
pubKey[x] = arg1[x + position];
string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);
Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
}
行号305:uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4 ; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询