Skip to content

pebbe/zmq2

Folders and files

NameName
Last commit message
Last commit date
Mar 25, 2021
Dec 5, 2018
Feb 21, 2021
Oct 17, 2014
Oct 7, 2015
Sep 15, 2014
Mar 24, 2021
Feb 20, 2021
Mar 16, 2017
Feb 24, 2016
Jan 7, 2015
Mar 14, 2013
Mar 14, 2013
Jan 7, 2015
Jan 21, 2016
Feb 11, 2021
Oct 26, 2015
Feb 17, 2016

Repository files navigation

A Go interface to ZeroMQ version 2.

Go Report Card GoDoc

Requires ZeroMQ version 2.1 or 2.2

For ZeroMQ version 4, see: http://github.com/pebbe/zmq4

For ZeroMQ version 3, see: http://github.com/pebbe/zmq3

Including all examples of ØMQ - The Guide.

Keywords: zmq, zeromq, 0mq, networks, distributed computing, message passing, fanout, pubsub, pipeline, request-reply

See also

  • go-zeromq/zmq4 — A pure-Go implementation of ØMQ (ZeroMQ), version 4
  • go-nanomsg — Language bindings for nanomsg in Go
  • goczmq — A Go interface to CZMQ
  • Mangos — An implementation in pure Go of the SP ("Scalable Protocols") protocols

Requirements

zmq2 is just a wrapper for the ZeroMQ library. It doesn't include the library itself. So you need to have ZeroMQ installed, including its development files. On Linux and Darwin you can check this with ($ is the command prompt):

$ pkg-config --modversion libzmq
2.2.0

The Go compiler must be able to compile C code. You can check this with:

$ go env CGO_ENABLED
1

You can't do cross-compilation. That would disable C.

Install

go get github.com/pebbe/zmq2

Docs

Support for ZeroMQ version 2.1

  • The following functions are not supported in ZeroMQ version 2.1, and will return an error:
  • (*Socket) GetRcvtimeo
  • (*Socket) GetSndtimeo
  • (*Socket) SetRcvtimeo
  • (*Socket) SetSndtimeo