I have a simple socket example program. It uses the async method to retrieve data from the socket. But if I change that code in the sync method, I get an error saying the buffer is a null reference...
Here's the project I downloaded don't remember where
Because I want to send (receive) a lot of consequential messages:
Send: OPEN
Receive: If Ok then
Send 2nd Mess after OK Mess.
else
Send 2nd Mess after No OK.
and so on...
It's a background job, as long as this procedure is not in the main thread I have no problem with the sync method. But I don't know I to manage this code with the async method...