In other news, I'm still no closer to getting my socket code working. I've got two choices:
- Fallback to something really simple that works (I.e. using select and only allow up to 64 clients in my tests)
- Start again, and build things up very slowly, using CSocket to delegate all calls except simple accessors to CSocketManager, and have CSocketManager refer to CSocket as a struct (Access its members directly). And only implement in small pieces (Only recv, only send, send/recv, only accept, only connect, accept/connect, everything together)
I'm leaning towards #2, because I really want to get this code working. If there was more than just me working on this, I'd definitely go for #1, since then someone could work on the socket code, and someone could work on something else. But since it's just me, that would just mean that I can do something else, and I'd end up throwing away the old code. I think I'll restart the socket code during my lunch break today actually. And hope it works...