1Net::DBus::Binding::PenUdsienrgCCaolnlt(r3i)buted Perl DNoectu:m:eDnBtuast:i:oBninding::PendingCall(3)
2
3
4

NAME

6       Net::DBus::Binding::PendingCall - A handler for pending method replies
7

SYNOPSIS

9         my $call = Net::DBus::Binding::PendingCall->new(method_call => $call,
10                                                         pending_call => $reply);
11
12         # Wait for completion
13         $call->block;
14
15         # And get the reply message
16         my $msg = $call->get_reply;
17

DESCRIPTION

19       This object is used when it is neccessary to make asynchronous method
20       calls. It provides the means to be notified when the reply is finally
21       received.
22

METHODS

24       my $call = Net::DBus::Binding::PendingCall->new(method_call =>
25       $method_call, pending_call => $pending_call);
26           Creates a new pending call object, with the "method_call" parameter
27           being a reference to the "Net::DBus::Binding::Message::MethodCall"
28           object whose reply is being waiting for. The "pending_call" parameā€
29           ter is a reference to the raw C pending call object.
30
31       $call->cancel
32           Cancel the pending call, causing any reply that is later received
33           to be discarded.
34
35       my $boolean = $call->get_completed
36           Returns a true value if the pending call has received its reply, or
37           a timeout has occurred.
38
39       $call->block
40           Block the caller until the reply is recieved or a timeout occurrs.
41
42       my $msg = $call->get_reply;
43           Retrieves the "Net::DBus::Binding::Message" object associated with
44           the complete call.
45
46       $call->set_notify($coderef);
47           Sets a notification function to be invoked when the pending call
48           completes. The callback will be passed a single argument which is
49           this pending call object.
50

SEE ALSO

52       Net::DBus::Binding::Connection, Net::DBus::Binding::Message,
53       Net::DBus::ASyncReply
54

AUTHOR

56       Daniel Berrange <dan@berrange.com>
57
59       Copyright 2006 by Daniel Berrange
60
61
62
63perl v5.8.8                       2008-02-20Net::DBus::Binding::PendingCall(3)
Impressum