Serverside port to C++