Zeromq Toolkit - zmq_socket


: sock = zmq_socket (type)

Create a zeromq socket.

Inputs

type - the socket type to create.

Supported socket types are:

ZMQ_PUB

Publish socket

ZMQ_SUB

Subscribe socket

ZMQ_REQ

Request socket

ZMQ_REP

Reply socket

ZMQ_PULL

Pull socket

ZMQ_PUSH

Push socket

ZMQ_PAIR

Pair socket

ZMQ_DEALER

Dealer socket

ZMQ_ROUTER

Router socket

ZMQ_XPUB

Publish socket

ZMQ_XSUB

Subscribe socket

ZMQ_STREAM

Stream socket

Outputs

sock - an instance of octave_zeromq_socket class.