socket.Send(buf); AsyncCallback callback = new AsyncCallback(ReceiveData5); mysocket.BeginReceive(WifiBuffer, 0, 100, 0, ReceiveData5, null); private void ReceiveData5(IAsyncResult rs) { //处理接收的数据 }
socket.Send(buf); AsyncCallback callback = new AsyncCallback(ReceiveData5); mysocket.BeginReceive(WifiBuffer, 0, 100, 0, ReceiveData5, null); private void ReceiveData5(IAsyncResult rs) { //处理接收的数据 }