Serialized/Server/STDIO.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Serialized/Client/STDIO.pm ↑ Summary Serialized/Server/UCSPI.pm »
1 package RPC::Serialized::Server::STDIO;
2 {
3 5 $RPC::Serialized::Server::STDIO::VERSION = '1.123630';
4 }
5  
6 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 ▶use base 'RPC::Serialized::Server';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 ▶use IO::Handle;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
14 2 my $class = shift;
15  
16 2 my $ifh = IO::Handle->new_from_fd( STDIN->fileno, "r" );
17 2 my $ofh = IO::Handle->new_from_fd( STDOUT->fileno, "w" );
18  
19 2 $ofh->autoflush(1);
20  
21 2 return $class->SUPER::new(
22 @_, {rpc_serialized => {ifh => $ifh, ofh => $ofh}},
23 );
24 }
25  
26 5 1;
27  
28 # ABSTRACT: Run a simple RPC server on STDIN and STDOUT
29  
30  
31 __END__
« Serialized/Client/STDIO.pm ↑ Summary Serialized/Server/UCSPI.pm »