Home

Awesome

LibZMQ

Swift Platform License

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:

$ brew update
$ brew install zeromq
$ sudo apt-get install libzmq3-dev

See Also

Author

Ahmad M. Zawawi

License

MIT License