FFI/SocketRole.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« FFI/ErrorHandler.pm ↑ Summary
1 package ZMQ::FFI::SocketRole;
2 1 $ZMQ::FFI::SocketRole::VERSION = '0.18';
3 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 has soname => (
6 is => 'ro',
7 required => 1,
8 );
9  
10 # context to associate socket instance with.
11 # reference necessary to guard against premature object destruction
12 1 has ctx => (
13 is => 'ro',
14 required => 1,
15 );
16  
17 # zmq constant socket type, e.g. ZMQ_REQ
18 1 has type => (
19 is => 'ro',
20 required => 1,
21 );
22  
23 1 requires qw(
24 connect
25 disconnect
26 bind
27 unbind
28 send
29 send_multipart
30 recv
31 recv_multipart
32 get_fd
33 get_linger
34 set_linger
35 get_identity
36 set_identity
37 subscribe
38 unsubscribe
39 has_pollin
40 has_pollout
41 get
42 set
43 close
44 );
45  
46 1 1;
47  
48 __END__
« FFI/ErrorHandler.pm ↑ Summary