register boost::function for callback in vnc.cpp