Hi,
Ok i have the following stub (adaptor) generated from introspect :
::DBus::Message __my_func_stub(const ::DBus::CallMessage &call)
{
::DBus::MessageIter ri = call.reader();
int32_t argout1 = _my_func();
::DBus::ReturnMessage reply(call);
::DBus::MessageIter wi = reply.writer();
wi << argout1;
return reply;
}
And I have to implement the function :
int32_t MyClass::_my_func( ){
..
}
I would like to get some information about the caller (connection id, pid,
uid) inside the implementation of _my_func().
Regards.
-----Original Message-----
From: Andreas Volz [mailto:li...@br...]
Sent: Thursday, April 23, 2009 9:52 PM
To: dbu...@li...
Subject: Re: [dbus-cplusplus-devel] How to get the sender of a message
inside the implementation of an Adaptor.
Am Thu, 23 Apr 2009 17:27:34 +0200 schrieb Redouane SOUM:
> Hi,
>
>
>
> Is it possible to get the sender of a message inside the
> implementation of an Adaptor ?
>
>
>
> I think this could be done thanks to Message ::sender() , which is
> based on dbus_message_get_sender , but it seems this is only used in
> generated code.
Hello Redouane,
I'm not sure if I understood you complete. Could you show some code?
regards
Andreas
----------------------------------------------------------------------------
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
dbus-cplusplus-devel mailing list
dbu...@li...
https://lists.sourceforge.net/lists/listinfo/dbus-cplusplus-devel
|