line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RPC::Serialized::Client::STDIO; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$RPC::Serialized::Client::STDIO::VERSION = '1.123630'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
842
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
7
|
1
|
|
|
1
|
|
6
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
56
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
6
|
use base 'RPC::Serialized::Client'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
621
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
1169
|
use IO::Handle; |
|
1
|
|
|
|
|
6770
|
|
|
1
|
|
|
|
|
153
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
1
|
|
|
1
|
1
|
829
|
my $class = shift; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
10
|
my $ifh = IO::Handle->new_from_fd( STDIN->fileno, "r" ); |
17
|
1
|
|
|
|
|
77
|
my $ofh = IO::Handle->new_from_fd( STDOUT->fileno, "w" ); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
55
|
$ofh->autoflush(1); |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
|
|
63
|
return $class->SUPER::new( |
22
|
|
|
|
|
|
|
@_, {rpc_serialized => {ifh => $ifh, ofh => $ofh}}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# ABSTRACT: RPC client using Standard I/O |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |