RT,请大虾帮帮忙,搞不懂啊~代码片段如下:
client = new TcpClient(AddressFamily.InterNetwork);
AsyncCallback requestCallBack = new AsyncCallback(RequestCallBack);
allDone.Reset();
client.BeginConnect(serverIP, 13000, requestCallBack, client);//开始连接
listBoxStatus.Invoke(setlistboxcallback,string.Format("本机终结点:{0}",client.Client.LocalEndPoint));
在listBoxStatus中显示的IP地址是0.0.0.0,端口号是对的,不知道为什么会这样~