Awesome
LibZMQ
This package provides a low-level Swift bindings for the
libzmq
library.
Example
import LibZMQ
// Report ZeroMQ library version
var major: Int32 = 0
var minor: Int32 = 0
var patch: Int32 = 0
zmq_version(&major, &minor, &patch)
print("Version is \(major).\(minor).\(patch)")
Usage
Your Package.swift
should be something like the following code to be able to
use this package:
import PackageDescription
let package = Package(
name: "YourPackageName",
dependencies: [
.Package(
url : "https://github.com/azawawi/swift-libzmq.git",
majorVersion : 0,
minor : 1
)
]
)
Installation
ZeroMQ library libzmq
is needed. Please follow the platform-specific
instructions shown below to install it:
- On MacOS, please type:
$ brew update
$ brew install zeromq
- On Ubuntu linux, please type:
$ sudo apt-get install libzmq3-dev
See Also
Author
License
MIT License