Hi guys,
I started focusing on SFML. So I plan to migrate my Game Engine Project (some kind of multiplayer, isometric hack'n'slay roleplaying) by using SFML. And this means to migrate my networking framework from SDL to SFML.
I made this during today - including deals with the questions "how to install SFML2.0 on my ubuntu 12.04 via suitable PPA" and "how does networking works with SFML 2.0". Now my framework looks even clearer and hopefully more stable.
What's that framework about: It is a TCP-based Server-Client-Framework, based on SFML 2.0 and C++11, as the title already said. You can find the code my GitHub repository
https://github.com/cgloeckner/networking - feel free to use, share and fork it. It's open source!
To avoid writing a large article, I'd just like to point out some features. You can find even more information in the README-file at the repository.
- Multithreaded Server-Client architecture
- TCP-based communication
- Multi-Plattform by modern C++11 and SFML features
- Limit number of clients (or keep open-end)
- Block / Unlock clients based on their IP-address
- Grouping clients to logical partitions
- Easy-to-use: it's header-only!
- Flexible: Use your own protocol workflow
I hope you like it. Feel free to comment on this framework (praise, criticism, questions etc.)
Finally I'd like to say:
SFML is great! Today's absolute highlight was getting to know about
sf::Packet - it's f*cking godlike
Kind regards
Glocke