I output the error and I am getting: Transport endpoint is not connected The strange part is if I put '\n' at the end of the message and read with 'readline' the message is successfully recieved.
Is this a problem with 'read'? Seamus On Thu, 27 Nov 2003, Bernie Bright wrote: > 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 > _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel