[SDL] problem with using socket from SDL_Net SDLNet_TCP_Accept - sorry for the previous message
bebe unknown
itay390 at yahoo.com
Sat Mar 3 00:53:56 PST 2007
----- Original Message ----
>No, you need to keep using the same socket. Don't reset the variable,
>don't close it. All data sent between the two things talking need to go
>over that socket. You only close it when both ends are done talking.
looks like even when i don't close the socket before trying to accept the second time, the problem still remains. your solution to the problem didn't even made sense either, because , at the start of the program 'somecomputer' was closed. and in the first accept it got opened, then , if i close it before the first accept to the second accept why should it matter? if it got opened in the first time, it can be opened in the second time. i know you have showed me its a waste of CPU to close the socket. but i really need a way to fix this problem and to get to the last scanf
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070303/b67c05fe/attachment.html
More information about the SDL
mailing list