Welcome to nanomsg
==================
[![Release](https://img.shields.io/github/release/nanomsg/nanomsg.svg)](https://github.com/nanomsg/nanomsg/releases/latest)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nanomsg/nanomsg/blob/master/COPYING)
[![Linux](https://img.shields.io/github/actions/workflow/status/nanomsg/nanomsg/linux.yml?branch=master&logoColor=grey&logo=linux&label=)](https://github.com/nanomsg/nanomsg/actions/workflows/linux.yml)
[![Windows](https://img.shields.io/github/actions/workflow/status/nanomsg/nanomsg/windows.yml?branch=master&logoColor=grey&logo=windows&label=)](https://github.com/nanomsg/nanomsg/actions/workflows/windows.yml)
[![Darwin](https://img.shields.io/github/actions/workflow/status/nanomsg/nanomsg/darwin.yml?branch=master&logoColor=grey&logo=apple&label=)](https://github.com/nanomsg/nanomsg/actions/workflows/darwin.yml)
[![Discord](https://img.shields.io/discord/639573728212156478?label=&logo=discord)](https://discord.com/channels/639573728212156478/639574516812742686)
The nanomsg library is a simple high-performance implementation of several
"scalability protocols". These scalability protocols are light-weight messaging
protocols which can be used to solve a number of very common messaging
patterns, such as request/reply, publish/subscribe, surveyor/respondent,
and so forth. These protocols can run over a variety of transports such
as TCP, UNIX sockets, and even WebSocket.
For more information check the [website](http://nanomsg.org).
Prerequisites
-------------
1. Windows.
* Windows Vista or newer (Windows XP and 2003 are *NOT* supported)
* Microsoft Visual Studio 2010 (including C++) or newer, or mingw-w64.
(Specifically mingw and older Microsoft compilers are *NOT* supported,
and we do not test mingw-w64 at all, so YMMV.)
* CMake 2.8.12 or newer, available in $PATH as `cmake`
2. POSIX (Linux, MacOS X, UNIX)
* ANSI C compiler supporting C89
* POSIX pthreads (should be present on all modern POSIX systems)
* BSD sockets support for both TCP and UNIX domain sockets
* CMake (http://cmake.org) 2.8.12 or newer, available in $PATH as `cmake`
3. Documentation (optional)
* asciidoctor (http://asciidoctor.org/) available as `asciidoctor`
* If not present, docs are not formatted, but left in readable ASCII
* Available on-line at http://nanomsg.org/documentation
Quick Build Instructions
------------------------
These steps here are the minimum steps to get a default Debug
build. Using CMake you can do many other things, including
setting additional variables, setting up for static builds, or
generation project or solution files for different development
environments. Please check the CMake website for all the various
options that CMake supports.
## POSIX
This assumes you have a shell in the project directory, and have
the cmake and suitable compilers (and any required supporting tools
like linkers or archivers) on your path.
1. `% mkdir build`
2. `% cd build`
3. `% cmake ..`
4. `% cmake --build .`
5. `% ctest .`
6. `% sudo cmake --build . --target install`
7. `% sudo ldconfig` (if on Linux)
## Windows
This assumes you are in a command or powershell window and have
the appropriate variables setup to support Visual Studio, typically
by running `vcvarsall.bat` or similar with the appropriate argument(s).
It also assumes you are in the project directory.
1. `md build`
2. `cd build`
3. `cmake ..`
4. `cmake --build . --config Debug`
5. `ctest -C Debug .`
6. `cmake --build . --config Debug --target install`
*NB:* This may have to be done using an Administrator account.
Alternatively, you can build and install nanomsg using [vcpkg](https://github.com/microsoft/vcpkg/) dependency manager:
1. `git clone https://github.com/Microsoft/vcpkg.git`
2. `cd vcpkg`
3. `./bootstrap-vcpkg.bat`
4. `./vcpkg integrate install`
5. `./vcpkg install nanomsg`
The nanomsg port in vcpkg is kept up to date by microsoft team members and community contributors.
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
Static Library
--------------
We normally build a dynamic library (.so or .DLL) by default.
If you want a static library (.a or .LIB), configure by passing
`-DNN_STATIC_LIB=ON` to the first `cmake` command.
### POSIX
POSIX systems will need to link with the libraries normally used when building
network applications. For some systems this might mean -lnsl or -lsocket.
### Windows
You will also need to define `NN_STATIC_LIB` in your compilation environment
when building programs that use this library. This is required because of
the way Windows changes symbol names depending on whether the symbols should
be exported in a DLL or not.
When using the .LIB on Windows, you will also need to link with the
ws2_32, mswsock, and advapi32 libraries, as nanomsg depends on them.
Support
-------
This library is considered to be in "sustaining" mode, which means that new
feature development has ended, and bug fixes are made only when strictly
necessary for severe issues.
New development is now occurring in the [NNG](https://github.com/nanomsg/nng)
project, which offers both protocol and API compatibility with this project.
Please consider using NNG for new projects.
Please see the file SUPPORT for more details.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
nanomsg-1.2.1.tar.gz (369个子文件)
nn_getsockopt.adoc 7KB
nn_setsockopt.adoc 6KB
nanocat.adoc 5KB
nn_symbol_info.adoc 4KB
nn_sendmsg.adoc 4KB
nn_ws.adoc 3KB
nn_recvmsg.adoc 3KB
nn_recv.adoc 3KB
nn_pubsub.adoc 3KB
nn_get_statistic.adoc 3KB
nanomsg.adoc 3KB
nn_poll.adoc 3KB
nn_connect.adoc 2KB
nn_bind.adoc 2KB
nn_send.adoc 2KB
nn_cmsg.adoc 2KB
nn_socket.adoc 2KB
nn_tcp.adoc 2KB
nn_symbol.adoc 2KB
nn_reqrep.adoc 2KB
nn_allocmsg.adoc 2KB
nn_inproc.adoc 2KB
nn_pair.adoc 2KB
nn_device.adoc 1KB
nn_shutdown.adoc 1KB
nn_survey.adoc 1KB
nn_ipc.adoc 1KB
nn_bus.adoc 1KB
nn_term.adoc 1KB
nn_errno.adoc 1KB
nn_env.adoc 1KB
nn_freemsg.adoc 1KB
nn_close.adoc 1KB
nn_pipeline.adoc 1010B
nn_reallocmsg.adoc 982B
nn_strerror.adoc 783B
AUTHORS 3KB
sws.c 59KB
ws_handshake.c 52KB
sock.c 34KB
global.c 30KB
options.c 24KB
cws.c 22KB
nanocat.c 22KB
trie.c 21KB
req.c 20KB
ctcp.c 20KB
sinproc.c 18KB
surveyor.c 17KB
sipc.c 15KB
stcp.c 15KB
cipc.c 14KB
btcp.c 12KB
streamhdr.c 12KB
aws.c 11KB
bws.c 11KB
atcp.c 11KB
aipc.c 11KB
bipc.c 11KB
device.c 9KB
async_demo.c 9KB
xrespondent.c 9KB
symbol.c 8KB
binproc.c 8KB
cinproc.c 8KB
trie.c 8KB
xrep.c 8KB
ws.c 8KB
device_demo.c 8KB
ep.c 7KB
tcp.c 7KB
chunk.c 7KB
pthread_demo.c 7KB
pipe.c 7KB
xsub.c 7KB
rpc_demo.c 6KB
xreq.c 6KB
xbus.c 6KB
inproc.c 6KB
zerocopy.c 6KB
timer.c 6KB
xsurveyor.c 6KB
fsm.c 6KB
poll.c 6KB
pubsub_demo.c 6KB
respondent.c 6KB
list.c 6KB
priolist.c 6KB
err.c 5KB
xpush.c 5KB
xpull.c 5KB
reqrep.c 5KB
poll.c 5KB
ipc.c 5KB
device.c 5KB
ins.c 5KB
xpub.c 5KB
base64.c 5KB
xpair.c 5KB
hash.c 5KB
共 369 条
- 1
- 2
- 3
- 4
资源评论
老板来份猪脚拼叉烧
- 粉丝: 42
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 汇编语言开发案列优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- Python + OpenCV开发案列优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- 儿童节小游戏开发案列优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- MySQL开发案列优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- MATLAB仿真案列优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- MATLAB优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- 4319447015972566022ssm城市交通海量数据管理系统.zip
- 前端开发实例优质学习资料资源工具与案列应用场景开发文档教程资料.txt
- Screenshot_20240601_132217.jpg
- Screenshot_20240601_132233.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功