line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RPC::Serialized::Server::STDIO; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$RPC::Serialized::Server::STDIO::VERSION = '1.123630'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
923
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
193
|
|
7
|
5
|
|
|
5
|
|
26
|
use warnings FATAL => 'all'; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
194
|
|
8
|
|
|
|
|
|
|
|
9
|
5
|
|
|
5
|
|
25
|
use base 'RPC::Serialized::Server'; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
3119
|
|
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
5513
|
use IO::Handle; |
|
5
|
|
|
|
|
30674
|
|
|
5
|
|
|
|
|
744
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
2
|
|
|
2
|
1
|
1505
|
my $class = shift; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
18
|
my $ifh = IO::Handle->new_from_fd( STDIN->fileno, "r" ); |
17
|
2
|
|
|
|
|
156
|
my $ofh = IO::Handle->new_from_fd( STDOUT->fileno, "w" ); |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
102
|
$ofh->autoflush(1); |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
116
|
return $class->SUPER::new( |
22
|
|
|
|
|
|
|
@_, {rpc_serialized => {ifh => $ifh, ofh => $ofh}}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# ABSTRACT: Run a simple RPC server on STDIN and STDOUT |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |