spaghetti_code 0 Newbie Poster

Hey guys! I'm working on an open-source video game and things are going well enough, except for the part where I'm trying to work around my n00bish socket-programming background to build the server component.

I had the server software working from a single-user perspective, but when I tried to add a feature that would allow multiple simultaneous tcp sessions, it stopped working. When I try to connect through telnet, the session just hangs. Lame. This also doesn't give me much troubleshooting information. Anyone able to duplicate the error, or show me where I screwed up? Please advise.

Thanks in advance!

http://codepad.org/CEn2eXOp

(sorry yr site won't let me post my c0de l0l)