[ee122] Son of a Beej

Daniel Killebrew dank at eecs.berkeley.edu
Thu Sep 20 19:41:17 PDT 2007


The client info is overwritten.

Daniel

Richard Schmidt wrote:
> I was looking at Beej's code for a multi-user setup and I noticed that 
> he was passing the pointer to the same sockaddr_in space for each new 
> connection. accept() says that this is thusly filled in with the 
> client's info.
>  
> But isn't that space already filled in with someone else's info? we're 
> passing the address of the physical memory to be filled in.
>  
> Can someone clarify where I went wrong with this one? Isn't Beej 
> indestructible?
> ------------------------------------------------------------------------
>
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
>   


More information about the ee122 mailing list