just a winsock server

05/03/2012 11:37 KraHen#1
This is an ancient winsock server, based mainly on the C++ HybridCO source (which was a great C++ reference for me). If you change the winsock part to BSD sockets (follow Beej`s guide on BSD sockets, and it won`t be hard at all, I promise) it will work on Linux based systems as well. Don`t know if anyone could use this, since those of you who don`t know C++ won`t use it, those of you who do can do this by themselves. So yeah.

The ThreadSafeVector.h contains only a class which wraps the std::vector functions using boost mutexes to ensure thread safety. Won`t post that, if you can`t do this, use a regular std::vector instead. If you can`t use std::vector then get a new hobby.


05/03/2012 11:39 I don't have a username#2
Bro this gets me more high than weed.
05/03/2012 11:41 KraHen#3
It`s 90% Hybrid`s work, I just converted it long ago because I was developing for Linux.

This isn`t really effective btw, on Windows you should always use IOCP.
05/03/2012 12:22 I don't have a username#4
Will look up on that broski :P