an one loop per thread server,  a general server framework