Net::DBus::Annotation Methods

From Alteeve Wiki
Jump to navigation Jump to search

 AN!Tools :: Net::DBus Binding Tutorial :: Net::DBus::Annotation Methods

dbus_call_sync

Usage:

my $processes=$object->list_processes("someuser");
(MADI: no (specific) example given in the POD for this method)

This requests that a remote method call be performed 'synchronously'. That is, wait until a reply or an error is returned from the remote method before proceeding.

dbus_call_async

Usage:

my $asyncreply=$object->list_processes(dbus_call_async, "someuser");
MADI: Will the user pick up the reply via the Net::DBus::Reactor->run event loop in this case?

This requests that a remote method call be performed 'asynchronously'. That is, the program will continue without waiting until a reply or error is received.

dbus_call_noreply

Usage:

$object->list_processes(dbus_call_noreply, "someuser");
This is a poor example, as a list would normally be returned, but it shows the syntax.
MADI: Find a better example that shows an accurate call we would not care to get a reply from (ie: a remote call to update the network devices?).

This sends a request to a remote method call but never looks for a reply of any type. This is useful when you know the remote method call will never reply  

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Alteeve Enterprise Support Community Support
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.