On Wed, 26 Nov 2003 16:59:53 -0700
Seamus Thomas Carroll <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am trying to recieve a message using SGSocket::read.  
> SGSocket::read returns zero bytes read until about the time 
> I am expecting the first message to be recieved.  From here on 
> SGSocket::read returns that -1 bytes have been read from the socket.
> I have looked around (simgear docs, plib) and I cant find out what the 
> -1 is supposed to indicate.
> 
> Does anyone know?

On unix -1 indicates an error.  The actual error code is in the external
variable errno. Call strerror(errno) to convert errno to a string.

Bernie

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to