Losing stdout to console, SDL_net-1.1.1 in BeOS

Hello,

I’m having a problem with SDL_net-1.1.1 in BeOS: stdout no longer seems to
go to the console after SDLNet_TCP_Recv() is called. Has anyone else
experienced this?

Thanks.

Hello,

I’m having a problem with SDL_net-1.1.1 in BeOS: stdout no longer seems to
go to the console after SDLNet_TCP_Recv() is called. Has anyone else
experienced this?

That’s really wierd! :slight_smile:

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

At 03:04 PM 9/9/00 -0700, Sam Lantinga wrote:

Hello,

I’m having a problem with SDL_net-1.1.1 in BeOS: stdout no longer
seems to
go to the console after SDLNet_TCP_Recv() is called. Has anyone else
experienced this?

That’s really wierd! :slight_smile:

    -Sam Lantinga, Lead Programmer, Loki Entertainment Software

Ack, I made a mistake. The console output is in fact getting killed
(redirected?) after I handle a lost TCP connection with:

     SDLNet_TCP_DelSocket(socketset, sock);
     SDLNet_TCP_Close(sock);

Is this any less weird? Heheh.

Ack, I made a mistake. The console output is in fact getting killed
(redirected?) after I handle a lost TCP connection with:

     SDLNet_TCP_DelSocket(socketset, sock);
     SDLNet_TCP_Close(sock);

Is this any less weird? Heheh.

What is the value of sock? It sounds like you’re accidently closing
the wrong file descriptor.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software