Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for draft socket types #206

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ZMQ.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include("socket.jl")
include("sockopts.jl")
include("message.jl")
include("comm.jl")
include("draft.jl")

function __init__()
major = Ref{Cint}()
Expand Down
18 changes: 18 additions & 0 deletions src/draft.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Draft ZMQ capabilities
# Note that usage of these APIs is not guaranteed to be compatible across ZMQ versions.
# Use at your own risk.
module Draft

export SERVER, CLIENT, RADIO, DISH, GATHER, SCATTER, DGRAM

# Draft Socket Types, as of ZMQ 4.3.2
const SERVER = 12
const CLIENT = 13
const RADIO = 14
const DISH = 15
const GATHER = 16
const SCATTER = 17
const DGRAM = 18

end # module Draft