2.21.1.2. Socket Connection Functions

Low Level Functions. 

int zmq_bind (void *socket, const char *endpoint);
int zmq_connect (void *socket, const char *endpoint);

inproc

communication within process

  • address is an arbitrary string

ipc

communication over local pipe

  • address is a local pipe file name

vmci

communication over hypervisor transport

  • address is a virtual machine identifier or hypervisor

  • address includes port number with function similar to TCP or UDP

tcp

TCP socket opened on demand

pgm

IP multicast to destination

epgm

UDP multicast to destination

High Level Functions. 

int zsock_bind (zsock_t *self, const char *format, ...);
int zsock_connect (zsock_t *self, const char *format, ...);