没有合适的资源?快使用搜索试试~ 我知道了~
首页nanomsg_nng 官方英文操作手册
nanomsg_nng 官方英文操作手册
5星 · 超过95%的资源 需积分: 45 70 下载量 95 浏览量
更新于2023-03-16
收藏 13.69MB PDF 举报
nanomsg后的nng 官方英文操作手册,详细的描述了nng库的使用方法
资源详情
资源推荐
NNG™ Reference Manual
Garrett D'Amore
Second Edition
Copyright © 2018 Staysail Systems
San Marcos, California, United States of America
This document is optimized for on-screen use. Please consider purchasing the book before printing it.
Purchases of the book help fund continued development NNG™. For updates, additional formats, errata,
and more information, please visit it’s homepage.
NNG™ and nanomsg™ are trademarks of Garrett D’Amore.
Second edition, November 2018.
For Jenichka —
The sun always shines when you are home.
Preface
At the time of this writing, we are wrapping up NNG for its formal 1.0.0 release. It’s a good time for
reflection on the road that we took to get here. Like the road on the cover of this book, it was windy (if
quite a bit longer), but what we find at the end has made the journey worthwhile.
Originally the NNG project was conceived as a relatively modest effort to rewrite nanomsg based on
threads, with a more readily extensible internal architecture so that we could more easily undertake
projects like the ZeroTier and TLS transports.
It would not be incorrect to say that the initial NNG effort was started in “anger”, as we were frustrated
with nanomsg’s very complex internal state machines. Looking back on it now, those complex state
state machines don’t seem nearly as insane as they did just a year ago.
The simple, naïve, approach we would have preferred, and the one we originally started with, involved
significant use of threads, inspired by the work we did in mangos, which uses Go’s goroutines heavily.
Goroutines are excellent. Threads, it turns out, are not. Scalable, asynchronous, portable I/O is a lot
harder than it looks.
Our experience with in-kernel threads on illumos and Solaris spoiled us, and left us utterly unprepared for
cesspool that really is large amounts of userspace programming.
Instead, we have created our own, completely asynchronous core, giving us advanced multiprocessing
and concurrency capabilities, without either sacrificing portability or settling for some unhappy least
common denominator. This core is a robust foundation for NNG and handling the “Scalability
Protocols”, but if we’re being completely honest, we think this core has braod applicability for beyond
just the Scalability Protocols. It will be interesting to see if others come to the same conclusion.
Builting upon this robust foundation, we have engineered a substantial project, with capabilities far in
exceess of the original nanomsg, while still preserving compatibility with the the network protocols
that form the backbone of the nanomsg ecosystem, and even a compatible programming interface for
nanomsg library users. In addition to compatibility with nanomsg, we find that NNG has greatly
increased scalability, reliability, and usability (especially when developing concurrent applications).
NNG also has complete HTTP server and client implementations, support for TLS, and a plethora of
other capabilities. Much of this is made possible by a the aforementioned asynchronous I/O framework.
Preface
1
剩余390页未读,继续阅读
chong_lin
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功