| 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__ | ||