The netbuf_getc function retrieves a character from the cursor position of the network buffer specified by b.
Because the constant IO_EOF has a value of 0, netbuf_getc cannot be used to read data that might contain a null character. To read binary data, use netbuf_getbytes() Function or netbuf_grab() Function.
The integer representing the character if a character is retrieved, or the constant IO_EOF or IO_ERROR for end of file or an error.
netbuf b is the buffer from which to retrieve one character.