ZMQ::Raw::Socket - ZeroMQ Socket class
version 0.02
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. TODO: list transports
Unbind the socket from the endpoint.
Connect the socket to an endpoint which accepts incoming connections. TODO
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. TODO: list flags
$buffer
Queue $msg to be sent. TODO: list flags
$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. TODO: list flags
$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.