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

fixes #44 open protocol by "name" (symbol) instead number #51

Merged
merged 2 commits into from
Aug 9, 2017

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Aug 9, 2017

fixes #38 Make protocols "pluggable", or at least optional

This is a breaking change, as we've done away with the central
registered list of protocols, and instead demand the user call
nng_xxx_open() where xxx is a protocol name. (We did keep a
table around in the compat framework though.)

There is a nice way for protocols to plug in via
an nni_proto_open(), where they can use a generic constructor
that they use to build a protocol specific constructor (passing
their ops vector in.)

fixes #38 Make protocols "pluggable", or at least optional

This is a breaking change, as we've done away with the central
registered list of protocols, and instead demand the user call
nng_xxx_open() where xxx is a protocol name.  (We did keep a
table around in the compat framework though.)

There is a nice way for protocols to plug in via
an nni_proto_open(), where they can use a generic constructor
that they use to build a protocol specific constructor (passing
their ops vector in.)
@codecov
Copy link

codecov bot commented Aug 9, 2017

Codecov Report

Merging #51 into master will increase coverage by 0.53%.
The diff coverage is 81.6%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage      64%   64.54%   +0.53%     
==========================================
  Files         107      107              
  Lines        8235     8236       +1     
  Branches     1208     1198      -10     
==========================================
+ Hits         5271     5316      +45     
+ Misses       2204     2170      -34     
+ Partials      760      750      -10
Impacted Files Coverage Δ
src/nng.c 43.28% <ø> (+0.07%) ⬆️
tests/reqrep.c 100% <ø> (ø) ⬆️
tests/event.c 44% <ø> (ø) ⬆️
tests/pipeline.c 100% <ø> (ø) ⬆️
tests/tcp.c 100% <ø> (ø) ⬆️
tests/sock.c 100% <ø> (ø) ⬆️
tests/pubsub.c 100% <ø> (ø) ⬆️
tests/bus.c 100% <ø> (ø) ⬆️
tests/survey.c 100% <ø> (ø) ⬆️
tests/scalability.c 31.25% <0%> (ø) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f0398d...e469d10. Read the comment docs.

@gdamore gdamore merged commit e469d10 into master Aug 9, 2017
@gdamore gdamore deleted the protoname branch May 7, 2018 13:41
muryliang pushed a commit to muryliang/nng that referenced this pull request Mar 30, 2023
…ents

fixes nanomsg#50 Go Report Card has numerous minor issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make protocols "pluggable", or at least optional
1 participant