-
1 Attachment(s)
Socket problem.
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 :)
-
-
if u have the async one why would u want to have a sync one?
-
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...
Any suggestion?
Thx, Xmas.
-
Made the async method stopping until all data was received... :)