• 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: 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.

  • Follow-Ups:
    • Re: data not arriving at client (bsd-sockets)
      • From: Robert Kuilman <email@hidden>
References: 
 >data not arriving at client (bsd-sockets) (From: Robert Kuilman <email@hidden>)

  • Prev by Date: data not arriving at client (bsd-sockets)
  • Next by Date: Re: data not arriving at client (bsd-sockets)
  • Previous by thread: data not arriving at client (bsd-sockets)
  • Next by thread: Re: data not arriving at client (bsd-sockets)
  • Index(es):
    • Date
    • Thread