Loading ...
Sorry, an error occurred while loading the content.

Re: [blug-prog] sockets programming - recv()

Expand Messages
  • Kiran Kumar
    ... Right, refer to the functions readn() and writen() in Richard Steven s UNIX network programming book. Also refer to the man pages for read and write.
    Message 1 of 2 , Jun 1, 2003
    • 0 Attachment
      --- Adarsh Bhat <big_standards@...> wrote:
      >
      > This is in regard with sockets programming on
      > Linux. If I do
      > a recv() call, am I assured that I will get the
      > entire data on one
      > call? i.e.,
      >
      > say I execute recv(..,10000 bytes)
      >
      > Will the recv() call return only after all the 10000
      > bytes have been
      > read?
      >
      > I've heard that it's not so and that it may return
      > after reading an
      > arbitrary number of bytes. How can this be handled?
      > Should I loop
      > back until I've read enough?
      Right, refer to the functions readn() and writen()
      in Richard Steven's UNIX network programming book.
      Also refer to the man pages for read and write.
      Regards,
      Kiran Kumar Immidi


      __________________________________
      Do you Yahoo!?
      Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
      http://calendar.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.