什么办法可以知道listener现在所处的状态呢??
while (true)
{
listener.Start();
TcpClient client = listener.AcceptTcpClient();
NetworkStream ns = client.GetStream();
byte[] readbf=new byte[100];
ns.Read(readbf,0,100);
TextBox1.Text=s;
string s=Encoding.ASCII.GetString (readbf);
}
刚才写的有点问题!!
while (true)
{
listener.Start();
TcpClient client = listener.AcceptTcpClient();
NetworkStream ns = client.GetStream();
byte[] readbf=new byte[100];
ns.Read(readbf,0,100);
TextBox1.Text=s;
string s=Encoding.ASCII.GetString (readbf);
}
刚才写的有点问题!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货