udpclient.close()后,重新开启就出错,难道udpclient关闭需要时间的吗?public bool start(int port)
{
try
{
UDP_server = new UdpClient(Port);
return true;
}
catch (Exception e)
{
return false;
}
}public bool stop()
{
try
{
UDP_server.close();
return true;
}
catch (Exception e)
{
return false;
}
}
{
try
{
UDP_server = new UdpClient(Port);
return true;
}
catch (Exception e)
{
return false;
}
}public bool stop()
{
try
{
UDP_server.close();
return true;
}
catch (Exception e)
{
return false;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货