• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: data not arriving at client (bsd-sockets)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: data not arriving at client (bsd-sockets)


  • Subject: Re: data not arriving at client (bsd-sockets)
  • From: Robert Kuilman <email@hidden>
  • Date: Tue, 20 May 2003 23:21:45 +0200

On Monday, May 19, 2003, at 09:57 PM, Quinn wrote:

At 17:16 +0200 18/5/03, Robert Kuilman wrote:
bytes_read inidicates says it received 2048 bytes (size of my struct) but there's simply nothing in there!

Define "nothing" (-: Is the buffer overwritten at all?
nope.

That is, if you fill the buffer with a well-defined pattern, does it come back as all zeroes, or does the well-defined pattern persist. The former would indicate a problem at the sending end. Have you looked at the packets on the wire to make sure that two chunks of 2 K aren't being sent by accident?

I have been looking into this, and it seems to me, as i've been asking for the packets to early(not giving the server time to respond), leaving my original structure untouched. Calling YieldToAnyThread(); a dozen of times didn't solve it (damn those fast processors), so i decided to just call 'read' (BSD-Socket call) until i do receive something, this seems to resolve my problem so far.

Any suggestions as to what could be done better, are more than welcome!

Robert K.

web: http://halfduplex.net/
email: email@hidden
------------------------------------------------------------------------ ---------------------
"Opportunity is missed by most people because it is dressed in overalls, and looks like work."
- Thomas Edison
_______________________________________________
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.
References: 
 >Re: data not arriving at client (bsd-sockets) (From: Quinn <email@hidden>)

  • Prev by Date: [Off-Topic?] Resources for developing Internet plug-ins for Safari
  • Next by Date: Re: [Off-Topic?] Resources for developing Internet plug-ins for
  • Previous by thread: Re: data not arriving at client (bsd-sockets)
  • Next by thread: When to turn on TCP_NODELAY?
  • Index(es):
    • Date
    • Thread