by Judo on Thu Oct 09, 2008 12:13 am
Why, I do believe this message is meant for me.
DARKGuy has decided to use SDL Net, which I've already worked with. It's simple, but limited due to its cross-platform nature. One goal of the draft, completion percentage of uploads, is not possible with it, for example. However, everything else is possible and implemented for client sockets.
Since server sockets must be asynchronous, they are more complex. Thankfully, NET2 exists, and it's extremely good. I think I have a basic wrapper of it somewhere on my hard drive. If not, I know it well and can make something quickly. While it's third-party software, there's no way to surpass it. Its developer wrote his own event system that is much more efficient than SDL's own.
Long story short, for client sockets, I'm still trying to figure out the threading stuff for the receive method. (I would appreciate help on this) That's all that's remaining for client sockets. Server sockets will be next, or perhaps after a quick IRC engine.
I plan on writing a wiki article on it.