c++: dim server and client examples