nanomsg

nanomsg 库是几个 "可扩展性协议 "的简单高性能实现。「The nanomsg library is a simple high-performance implementation of several "scalability protocols".」

  • 所有者: nanomsg/nanomsg
  • 平台: Linux, Mac, Unix-like, Windows
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Welcome to nanomsg

Release
MIT License
Linux Status
Windows Status
Coverage
Gitter

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.

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.7 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.7 or newer, available in $PATH as cmake
  3. Documentation (optional)

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.

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
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.

Resources

Website: http://nanomsg.org

Source code: https://github.com/nanomsg/nanomsg

Documentation: http://nanomsg.org/documentation.html

Bug tracker: https://github.com/nanomsg/nanomsg/issues

Mailing list: nanomsg@freelists.org

Gitter Chat: https://gitter.im/nanomsg/nanomsg

IRC chatroom: #nanomsg at irc.freenode.net/8001

主要指标

概览
名称与所有者nanomsg/nanomsg
主编程语言C
编程语言CMake (语言数: 3)
平台Linux, Mac, Unix-like, Windows
许可证Other
所有者活动
创建于2012-10-10 08:32:14
推送于2024-02-03 22:54:20
最后一次提交2024-02-03 14:45:24
发布数21
最新版本名称1.2.1 (发布于 )
第一版名称0.1-alpha (发布于 2013-08-21 08:10:02)
用户参与
星数6.1k
关注者数423
派生数1k
提交数1.7k
已启用问题?
问题数680
打开的问题数15
拉请求数169
打开的拉请求数1
关闭的拉请求数266
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?