[ee122] Son of a Beej

Richard Schmidt huntingtonsurfca at gmail.com
Thu Sep 20 00:59:09 PDT 2007

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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/ee122/attachments/20070920/2d1495fb/attachment.html 

More information about the ee122 mailing list