[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 23:51:03 PST 2007


>You didn't open it a second time in the source code you posted.

i don't really understand, i think i did open it both in the first time and in the second time. 
is that what this line meant to do, isn't it?
while (!(somecomputer = SDLNet_TCP_Accept(listeningsocket)));
the program waits for a message from the listening socket, (i do wonder sometimes why i don't get spammed in this 'while' with other networking services that send data into my computer)  and then it opens a socket with communication to the one who sent the message , and that 'socket' is : somecomputer. well, its like that for both messages - the first and second. and after the function returns a value other than 0 the program proceeds


 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070303/c04c0b99/attachment.html 


More information about the SDL mailing list