[core] [oils] [libraries] [C++ messages] [coding guidelines] | [up to overview ] |
#include <msg/client/mGetUserAuthentication.h>
mGetUserAuthentication ();
This will get hold of the user identification. It is handled by the client and usually it means to ask the user for it, but there might be other ways.
try { mGetUserAuthentication m; m.Send(); cout << "User: " << m.user << endl; cout << "Passwd: " << m.password << endl; } catch(exception& ex) { cerr << "exception: " << ex.what() << endl; }