110,572
社区成员
发帖
与我相关
我的任务
分享
private void sendrfiddata()
{
tcpClient2.ReceiveTimeout = 1000;
senddata.WriteLine("entrybalance," + "京A12345");
senddata.Flush();
byte[] Data = new Byte[400];
Int32 bytes;
while (true)
{
try
{
bytes = ns.Read(Data, 0, Data.Length);
string receiveData = Encoding.Default.GetString(Data, 0, bytes); break;
}
catch(Exception ex)
{
//do nothing
}
}
}