On Wed, 26 Nov 2003 18:04:50 -0700
Seamus Thomas Carroll <[EMAIL PROTECTED]> wrote:

> I output the error and I am getting:
> Transport endpoint is not connected

>From man recv

       ENOTCONN
              The socket is associated with a connection-oriented protocol and
              has not been connected (see connect(2) and accept(2)).

If its the server side that is failing then accept() wasn't called or you are
trying to read from the master socket.  But see below...

> 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'?

SGSocket::readline() and SGSocket::read() do act differently.  For a
server, readline() correctly handles the accept and reads from the new
socket.  read() also handles the accept but reads from the master socket.
I'm not sure if this is intentional or if its a bug.

Bernie

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

Reply via email to