[SDL] problem with using socket from SDL_Net SDLNet_TCP_Accept

bebe unknown itay390 at yahoo.com
Fri Mar 2 01:21:14 PST 2007


----- Original Message ----
From: Ryan C. Gordon <icculus at icculus.org>
To: A list for developers using the SDL library. (includes SDL-announce) <sdl at lists.libsdl.org>
Sent: Thursday, March 1, 2007 10:27:15 PM
Subject: Re: [SDL] problem with using socket from SDL_Net SDLNet_TCP_Accept

>Don't call SDLNet_TCP_Accept() a second time...you are sending on the 
>first socket still, but the reading portion of your code throws it away 
>(without closing it) and waits for a second connection, instead of 
>reading from the first again.

i don't really undestand what did you say. my main problem with understanding you is this sentence :
"you are sending on the first socket still" - what do you mean by first? 

There are other bugs in the program, but if you get rid of the second 
Accept and keep using the original somecomputer value, it gets to the 
scanf("%s") call.

--ryan.


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070302/29d8f2a5/attachment.htm 


More information about the SDL mailing list