日期:2014-05-18 浏览次数:20909 次
StateObject state = (StateObject)ar.AsyncState; Socket clientSocket = state.workSocket; int bytesRead = clientSocket.EndReceive(ar); if (bytesRead > 0) { byte[] str = state.buffer; String receive = Convert.ToString(str[0]); if (receive=="32") { MessageBox.Show(receive); } }