Professional Web Applications Themes

recvmsg() Return Value - UNIX Programming

Hello All, I have a question about recvmsg(). I understand what is signified by recvmsg() returning -1 (error) and greater than 0 (number of received bytes from socket) but what is signified by this system call returning less than -1 (if it can even do so)? Any feedback would be appreciated. Thanks, Josh....

  1. #1

    Default recvmsg() Return Value


    Hello All,

    I have a question about recvmsg().
    I understand what is signified by recvmsg() returning -1
    (error) and greater than 0 (number of received bytes from
    socket) but what is signified by this system call returning
    less than -1 (if it can even do so)?
    Any feedback would be appreciated.

    Thanks,

    Josh.
    Josh Guest

  2. #2

    Default Re: recvmsg() Return Value

    Josh Birnbaum <org> wrote in message news:<org>... 

    recvmsg() never returns a value < -1. Also see the man pages.
    Yours sincerely.
    nannou Guest

  3. #3

    Default Re: recvmsg() Return Value

    nannou wrote:

    Hi Nannou,
     

    Yes, I read the man page which seems clear enough regarding
    this point. I was just wondering about what < -1 might
    signify if it were possible. It seems that it is not.
    Thanks for the clarification on this.

    Yours,

    Josh.
    Josh Guest

  4. #4

    Default Re: recvmsg() Return Value


    "Josh Birnbaum" <org> wrote in message
    news:org... 


    It would signify that the operating system or system library had
    violated the interface contract with the running program.

    DS



    David Guest

Similar Threads

  1. Return value of foo=
    By Gavin in forum Ruby
    Replies: 5
    Last Post: February 12th, 09:28 PM
  2. goToNetPage, return or not return
    By GONS in forum Macromedia Director Basics
    Replies: 1
    Last Post: January 16th, 08:44 PM
  3. Help with strange recvfrom and recvmsg problem
    By Mike in forum UNIX Programming
    Replies: 6
    Last Post: November 24th, 01:50 PM
  4. Return Key
    By Ethan in forum Mac Portable
    Replies: 0
    Last Post: July 14th, 11:43 PM
  5. Return to Tab
    By Joe Fallon in forum Microsoft Access
    Replies: 0
    Last Post: July 12th, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139