Re: data not arriving at client (bsd-sockets)
Re: data not arriving at client (bsd-sockets)
- Subject: Re: data not arriving at client (bsd-sockets)
- From: Chilton Webb <email@hidden>
- Date: Sun, 18 May 2003 10:32:54 -0500
Hi Robert,
Well, does the second call to read actually produce the right struct?
What are you passing in as buffer_size (the amount you expect to read)?
Also, can you post more of your code? There's not much to go on here.
-Chilotn
On Sunday, May 18, 2003, at 10:16 AM, Robert Kuilman wrote:
the code i use for receiving data is as follows.
bzero(buffer, buffer_size);
bytes_read = read(mySocket, buffer, buffer_size );
bytes_read inidicates says it received 2048 bytes (size of my struct)
but there's simply nothing in there!
the second time i call this code, it does receive data...
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.