All Projects → autozimu → Nanomsg.swift

autozimu / Nanomsg.swift

Licence: MIT license
Swift binding for nanomsg

Programming Languages

swift
15916 projects
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to Nanomsg.swift

d-nanomsg
experimental d-lang bindings for nano msg
Stars: ✭ 14 (-6.67%)
Mutual labels:  nanomsg
pink-0
Ableton Link to clock/reset signals converter
Stars: ✭ 87 (+480%)
Mutual labels:  nanomsg
runng
No description or website provided.
Stars: ✭ 23 (+53.33%)
Mutual labels:  nanomsg
Mangos V1
The pure golang implementation of nanomsg (version 1, frozen)
Stars: ✭ 1,533 (+10120%)
Mutual labels:  nanomsg
SharpNng
SharpNng is a lightweight low-level managed wrapper around the Lightweight Messaging Library NNG
Stars: ✭ 28 (+86.67%)
Mutual labels:  nanomsg
nanomsg-browser
nanomsg websocket connection for the browser
Stars: ✭ 26 (+73.33%)
Mutual labels:  nanomsg

Swift binding for nanomsg

CircleCI

Usage

If Swift Package Manager is used, add this package as a dependency in Package.swift,

.Package(url: "https://github.com/autozimu/Nanomsg.swift.git", majorVersion: 0)

Example

Push

import Nanomsg

let sock = try Socket(.PUSH)
try sock.connect("ipc:///tmp/pipeline.ipc")
try sock.send("Yo!")

Pull

import Nanomsg

let sock = try Socket(.PULL)
try sock.bind("ipc:///tmp/pipeline.ipc")
let msg: String = try sock.recv()
print(msg) // Yo!

More examples could be found in examples dir.

Documentation

https://autozimu.github.io/Nanomsg.swift/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].