2024年6月8日发(作者:)
public void SendMsg(string msg)
{
SendFlag = true;
while (SendFlag && RunFlag)
{
int Lenth = 0;
try
{
(es(msg));
if (Choice == 2)
{
byte[] ReciverData = new byte[1024];
eTimeout = 5000;
Lenth = e(ReciverData);
byte[] bt = new byte[Lenth];
for(int j = 0; j < Lenth; j++)
{
bt[j] = ReciverData[j];
}
// RightReciver = ing(bt);
RightReciver = ing(bt);
}
else if (Choice == 1)
{
byte[] ReciverData = new byte[32];
eTimeout = 5000;
Lenth = e(ReciverData);
byte[] bt = new byte[Lenth];
for (int j = 0; j < Lenth; j++)
{
bt[j] = ReciverData[j];
}
LeftReciver = ing(bt);
// ine( );
}
else
Lenth = 0;
if (Lenth != 0)
{
SendFlag = false;
RunFlag = false;
();
}
}
catch
{
// RunFlag = false;
SendFlag = false;
//();
();
}
(30);
}
}
}
}
发布评论