zeromq
Version, currently master branch1 version
- master branchlatestSep 18, 2023
github.com/crystal-community/zeromq-crystal
No description declared in shard.yml.
51 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
zeromq:
github: crystal-community/zeromq-crystal
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Authors
- Benoist Claassen, digitalextremist
Dependencies
This version declares no dependencies.
README
zeromq
Bindings for ZeroMQ (http://zero.mq) Ported from (https://github.com/chuckremes/ffi-rzmq-core) Thank you @chuckremes
Installation
Add this to your application's shard.yml:
dependencies:
zeromq:
github: crystal-community/zeromq-crystal
Usage
require "zeromq"
# Simple server
context = ZMQ::Context.new
server = context.socket(ZMQ::REP)
server.bind("tcp://127.0.0.1:5555")
loop do
puts server.receive_string
server.send_string("Got it")
end
# Simple client
context = ZMQ::Context.new
client = context.socket(ZMQ::REQ)
client.connect("tcp://127.0.0.1:5555")
client.send_string("Fetch")
puts client.receive_string
TODO
- [ ] Add more tests
- [ ] Add more examples
Contributing
- Fork it ( https://github.com/benoist/zeromq-crystal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Benoist Benoist Claassen - creator, maintainer
- Hristo Kochev Hristo Kochev
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 18, 2023
- Indexed
- yes
Dependents
Repository
github.com/crystal-community/zeromq-crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 23, 2026
- Synced
- Sep 23, 2026
- Versions
- 1
