End Google Ads 201810 - BS.net 01 -->
Hi all,
Some background information:
I have a method A that calls another method B. In method B an asynchronous TCP/IP read occurs: this.tcpClient.GetStream().BeginRead(byteReadBuffer, 0, byteReadBuffer.Length, new AsyncCallback(ProcessReadBuffer), tcpClient.GetStream()); on result method ProcessReadBuffer
So my question:
How can I wait for the asynchronous ProcessReadBuffer method to complete in method B. Reason being that I require some results from ProcessReadBuffer method in method A?
Many thanks in advance.
Kind regards,
The only programmers that are better C# programmers, are those who look like this ->
Programm3r
My Blog: ^_^
مواقع النشر (المفضلة)