| 1 | package RPC::Simple::CallHandler; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ( $VERSION ) = '$Revision: 1.6 $ ' =~ /\$Revision:\s+([^\s]+)/; | |||||||||
| 7 | |||||||||||
| 8 | # Items to export into callers namespace by default. Note: do not export | ||||||||||
| 9 | # names by default without a very good reason. Use EXPORT_OK instead. | ||||||||||
| 10 | # Do not simply export all your public functions/methods/constants. | ||||||||||
| 11 | |||||||||||
| 12 | # Preloaded methods go here. | ||||||||||
| 13 | |||||||||||
| 14 | # Autoload methods go after =cut, and are processed by the autosplit program. | ||||||||||
| 15 | sub new | ||||||||||
| 16 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 17 | 0 | my $type = shift ; | |||||||||
| 18 | 0 | my $self = {} ; | |||||||||
| 19 | |||||||||||
| 20 | 0 | $self->{controlRef} = shift ; | |||||||||
| 21 | 0 | $self->{objRef} = shift ; | |||||||||
| 22 | 0 | $self->{reqId} = shift ; | |||||||||
| 23 | 0 | my $method = shift ; | |||||||||
| 24 | 0 | my $args = shift ; | |||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | print "Creating call handler\n" if $main::verbose ; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 0 | bless $self,$type ; | |||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | $self->{objRef} -> $method (sub {$self->done(@_);} , @$args) ; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 30 | 0 | return $self ; | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | sub done | ||||||||||
| 34 | 0 | ▶ | { | ||||||||
|
Subroutine
done: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 35 | 0 | my $self = shift ; | |||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | print "done called\n" if $main::verbose ; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | 0 | $self->{controlRef} -> callbackDone ($self->{reqId}, @_ ) ; | |||||||||
| 39 | 0 | $self->destroy ; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | sub destroy | ||||||||||
| 43 | 0 | ▶ | { | ||||||||
|
Subroutine
destroy: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 44 | 0 | my $self = shift ; | |||||||||
| 45 | 0 | ▶ | print "CallHandler destroyed\n" if $main::verbose ; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | 0 | delete $self->{controlRef} ; | |||||||||
| 47 | 0 | delete $self->{objRef} ; | |||||||||
| 48 | 0 | delete $self->{reqId} ; | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | 1 | 1; | |||||||||
| 52 | __END__ | ||||||||||