Daisuke Maki > ZMQ-CZMQ-1.04 > ZMQ::CZMQ::Zsocket

Download:
ZMQ-CZMQ-1.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

ZMQ::CZMQ::Zsocket - Wrapper Around zsocket_t

SYNOPSIS ^

    use ZMQ::CZMQ;
    use ZMQ::Constants (ZMQ_REQ);

    my $ctx = ZMQ::CZMQ::Ctx->new;
    my $sock = $ctx->socket(ZMQ_REQ);
    $sock->bind($endpoint);
    $sock->connect($endpoint);
    $sock->disconnect;
    $sock->poll($msecs);
    $sock->type_str;
    $sock->destroy($ctx);

    # send() is overloaded
    $sock->send($msg);
    $sock->send($frame);
    $sock->send($fmt, ...);

    $sock->sendm($fmt, ...);

    # sockopts are very much dependent on the underlying
    # libzmq version: don't just trust this list

    # If you pass an argument, you can set values
    $sock->affinity()
    $sock->backlog()
    $sock->events()
    $sock->fd()
    $sock->identity()
    $sock->ipv4only()
    $sock->last_endpoint()
    $sock->linger()
    $sock->maxmsgsize()
    $sock->multicast_hops()
    $sock->rate()
    $sock->rcvbuf()
    $sock->rcvhwm()
    $sock->rcvmore()
    $sock->rcvtimeo()
    $sock->reconnect_ivl()
    $sock->reconnect_ivl_max()
    $sock->recovery_ivl()
    $sock->sndbuf()
    $sock->sndhwm()
    $sock->sndtimeo()

METHODS ^

affinity

backlog

bind

connect

destroy

disconnect

events

fd

identity

ipv4only

last_endpoint

linger

maxmsgsize

multicast_hops

poll

rate

rcvbuf

rcvhwm

rcvmore

rcvtimeo

reconnect_ivl

reconnect_ivl_max

recovery_ivl

send

sendm

sndbuf

sndhwm

sndtimeo

type

type_str

syntax highlighting: