Go to file
Thiago Holanda 9e375aa08e
added new rules to .gitignore
2018-03-12 20:29:17 +01:00
Sources some renamings 2016-10-26 17:30:41 +03:00
Tests adapt 3 swift 2016-09-23 20:43:48 +03:00
.gitignore added new rules to .gitignore 2018-03-12 20:29:17 +01:00
.swift-version new swift preview 2016-06-14 11:51:53 +03:00
.travis.yml Fix for missing install-swift.sh travis script 2016-10-28 15:01:56 -04:00
LICENSE init 2015-10-26 01:25:04 -02:00
Package.swift removing zewo/core dependence 2016-10-09 13:31:04 +03:00
README.md add travis and codebeat badges 2016-04-26 23:28:50 -03:00
setup_env.sh Follow redirects 2016-06-05 23:44:59 +02:00

README.md

ZeroMQ

Swift Zewo Platform License Slack Travis Codebeat

ZeroMQ is a 0mq binding for Swift 3.

Features

  • Context
  • Socket
  • Message
  • Poller
  • Proxy

##Example

import ZeroMQ

let context = try Context()

let inbound = try context.socket(.Pull)
try inbound.bind("tcp://127.0.0.1:5555")

let outbound = try context.socket(.Push)
try outbound.connect("tcp://127.0.0.1:5555")

try outbound.sendString("Hello World!")
try outbound.sendString("Bye!")

while let data = try inbound.receiveString() where data != "Bye!" {
    print(data) // "Hello World!"
}

Installation

Install ZeroMQ system library

./setup_env.sh

Add ZeroMQ to Package.swift

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/Zewo/ZeroMQ.git", majorVersion: 0, minor: 5),
    ]
)

Support

If you need any help you can join our Slack and go to the #help channel. Or you can create a Github issue in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.

Community

Slack

The entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on Slack to get to know us!

License

This project is released under the MIT license. See LICENSE for details.