ZMQ::Raw::Socket - ZeroMQ Socket class
version 0.04
A ZMQ::Raw::Socket represents a ZeroMQ socket.
Create a new ZeroMQ socket with the specified $context. $type specifies the socket type, which determines the semantics of communication over the socket.
$context
$type
Bind the socket to a local endpoint which accepts incoming connections. The endpoint is a string consisting of a transport:// followed by an address. The transport specifies the underlying protocol to use, whereas the address specifies the transport-specific address to bind to. The following transports are provided:
"tcp"
unicast transport using TCP
"ipc"
local inter-process communication transport
"inproc"
local in-process (inter-thread) communication transport
"pgm,epgm"
reliable multicast transport using PGM
"vmci"
virtual machine communications interface (VMCI)
Unbind the socket from the endpoint.
Connect the socket to an endpoint which accepts incoming connections.
Disconnect the socket from the endpoint. Any outstanding messages physically received from the network but not yet received by the application will be discarded.
Queue a message created from $buffer. $flags defaults to 0 but may be a combination of:
$buffer
$flags
0
ZMQ::Raw->ZMQ_DONTWAIT
ZMQ::Raw->ZMQ_SNDMORE
Queue $msg to be sent.
$msg
Receive a message. If $size does not have enough space to store a full message, it will be truncated. If there are no messages available the method will block until the request can be satisfied.
$size
Receive a message part. Returns a ZMQ::Raw::Message object.
ZMQ::Raw::Message
Set a socket option.
Jacques Germishuys <jacquesg@striata.com>
Copyright 2017 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install ZMQ::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ::Raw
CPAN shell
perl -MCPAN -e shell install ZMQ::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.