Skip to content

Commit

Permalink
beta6 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
reqshark committed Aug 15, 2015
1 parent b60a513 commit 14ed122
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "deps/nanomsg"]
path = deps/nanomsg
url = https://github.com/nickdesaulniers/nanomsg.git
url = https://github.com/nanomsg/nanomsg.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
- "iojs-v2.5.0"
before_install: make
script: make check
50 changes: 31 additions & 19 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@
'common.gypi',
],
'conditions': [
['OS=="mac"', {
'includes': [
'macosx.gypi',
]
}],
['OS=="linux"', {
'includes': [
'linux.gypi',
]
}],
['OS=="win"', {
'includes': [
'win.gypi',
]
}],
['OS=="mac"', {
'includes': [
'macosx.gypi',
]
}],
['OS=="linux"', {
'includes': [
'linux.gypi',
]
}],
['OS=="win"', {
'includes': [
'win.gypi',
]
}],
],

'include_dirs': [
'deps/nanomsg/src',
'deps/nanomsg/src/aio',
Expand Down Expand Up @@ -99,6 +98,7 @@
'deps/nanomsg/src/protocols/utils/lb.c',
'deps/nanomsg/src/protocols/utils/priolist.c',
'deps/nanomsg/src/transports/utils/backoff.c',
'deps/nanomsg/src/transports/utils/base64.c',
'deps/nanomsg/src/transports/utils/dns.c',
'deps/nanomsg/src/transports/utils/iface.c',
'deps/nanomsg/src/transports/utils/literal.c',
Expand All @@ -120,24 +120,36 @@
'deps/nanomsg/src/transports/tcp/ctcp.c',
'deps/nanomsg/src/transports/tcp/stcp.c',
'deps/nanomsg/src/transports/tcp/tcp.c',
'deps/nanomsg/src/transports/tcpmux/atcpmux.c',
'deps/nanomsg/src/transports/tcpmux/btcpmux.c',
'deps/nanomsg/src/transports/tcpmux/ctcpmux.c',
'deps/nanomsg/src/transports/tcpmux/stcpmux.c',
'deps/nanomsg/src/transports/tcpmux/tcpmux.c',
'deps/nanomsg/src/transports/ws/aws.c',
'deps/nanomsg/src/transports/ws/bws.c',
'deps/nanomsg/src/transports/ws/cws.c',
'deps/nanomsg/src/transports/ws/sha1.c',
'deps/nanomsg/src/transports/ws/sws.c',
'deps/nanomsg/src/transports/ws/ws.c',
'deps/nanomsg/src/transports/ws/ws_handshake.c',
'deps/nanomsg/src/devices/device.c',
],
},
{
'target_name': 'node_nanomsg',
'dependencies': [ 'nanomsg', ],
'cflags': [ '-Wall -Werror -Wno-unused' ],
'cflags_cc': ['-fexceptions'],
'conditions': [
['OS=="mac"', {
'ldflags': ['-ldtrace'],
'libraries': ['-ldtrace' ],
'ldflags': [ '-L<(PRODUCT_DIR) -ldtrace' ],
'libraries': [ '-ldtrace', '-L<(PRODUCT_DIR)' ],
}],
['OS=="linux"', {
}],
['OS=="win"', {
}],
],
'dependencies': [ 'nanomsg', ],
'include_dirs': [
"<!(node -e \"require('nan')\")",
],
Expand Down
2 changes: 1 addition & 1 deletion deps/nanomsg
Submodule nanomsg updated 97 files
+6 −0 .gitignore
+20 −0 .travis.yml
+4 −0 AUTHORS
+3 −0 CMakeLists.txt
+56 −14 Makefile.am
+3 −0 README
+39 −2 configure.ac
+6 −0 debian/changelog
+1 −0 debian/compat
+12 −0 debian/control
+22 −0 debian/copyright
+5 −0 debian/rules
+1 −0 debian/source/format
+9 −0 doc/nanomsg.txt
+4 −1 doc/nn_symbol_info.txt
+72 −0 doc/nn_tcpmux.txt
+82 −0 doc/nn_ws.txt
+41 −0 doc/tcpmuxd.txt
+34 −19 m4/ax_pthread.m4
+4 −1 package_version.sh
+26 −27 rfc/sp-request-reply-01.txt
+10 −12 rfc/sp-request-reply-01.xml
+728 −0 rfc/sp-surveyor-01.txt
+647 −0 rfc/sp-surveyor-01.xml
+66 −11 rfc/sp-websocket-mapping-01.txt
+43 −5 rfc/sp-websocket-mapping-01.xml
+30 −0 src/CMakeLists.txt
+2 −1 src/aio/poller_epoll.h
+2 −2 src/aio/poller_poll.inc
+4 −2 src/aio/usock.h
+4 −0 src/aio/usock_posix.h
+72 −5 src/aio/usock_posix.inc
+10 −1 src/aio/usock_win.inc
+61 −45 src/core/global.c
+4 −1 src/core/sock.c
+1 −1 src/core/sock.h
+5 −0 src/core/symbol.c
+375 −0 src/devices/tcpmuxd.c
+8 −1 src/nn.h
+16 −17 src/protocols/survey/respondent.c
+16 −2 src/protocols/survey/surveyor.c
+131 −32 src/protocols/survey/xrespondent.c
+22 −2 src/protocols/survey/xrespondent.h
+6 −2 src/survey.h
+39 −0 src/tcpmux.h
+3 −0 src/transports/inproc/binproc.c
+20 −2 src/transports/inproc/cinproc.c
+0 −4 src/transports/inproc/ins.c
+0 −4 src/transports/inproc/ins.h
+3 −0 src/transports/inproc/sinproc.c
+1 −0 src/transports/ipc/cipc.c
+4 −3 src/transports/ipc/sipc.c
+5 −1 src/transports/tcp/ctcp.c
+4 −3 src/transports/tcp/stcp.c
+231 −0 src/transports/tcpmux/atcpmux.c
+77 −0 src/transports/tcpmux/atcpmux.h
+508 −0 src/transports/tcpmux/btcpmux.c
+33 −0 src/transports/tcpmux/btcpmux.h
+706 −0 src/transports/tcpmux/ctcpmux.c
+33 −0 src/transports/tcpmux/ctcpmux.h
+419 −0 src/transports/tcpmux/stcpmux.c
+90 −0 src/transports/tcpmux/stcpmux.h
+163 −0 src/transports/tcpmux/tcpmux.c
+30 −0 src/transports/tcpmux/tcpmux.h
+151 −0 src/transports/utils/base64.c
+43 −0 src/transports/utils/base64.h
+1 −1 src/transports/utils/dns.c
+1 −1 src/transports/utils/dns.h
+1 −0 src/transports/utils/dns_getaddrinfo_a.inc
+29 −2 src/transports/utils/iface.c
+1 −1 src/transports/utils/streamhdr.c
+148 −0 src/transports/utils/tcpmux.c
+33 −0 src/transports/utils/tcpmux.h
+326 −0 src/transports/ws/aws.c
+81 −0 src/transports/ws/aws.h
+396 −0 src/transports/ws/bws.c
+34 −0 src/transports/ws/bws.h
+671 −0 src/transports/ws/cws.c
+34 −0 src/transports/ws/cws.h
+143 −0 src/transports/ws/sha1.c
+57 −0 src/transports/ws/sha1.h
+1,559 −0 src/transports/ws/sws.c
+204 −0 src/transports/ws/sws.h
+228 −0 src/transports/ws/ws.c
+31 −0 src/transports/ws/ws.h
+1,363 −0 src/transports/ws/ws_handshake.c
+179 −0 src/transports/ws/ws_handshake.h
+67 −0 src/ws.h
+3 −0 tests/README
+2 −2 tests/cmsg.c
+93 −1 tests/inproc.c
+4 −0 tests/ipc_shutdown.c
+10 −1 tests/survey.c
+4 −0 tests/tcp_shutdown.c
+64 −0 tests/tcpmux.c
+121 −0 tests/ws.c
+57 −0 tools/tcpmuxd.c
2 changes: 2 additions & 0 deletions linux.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'NN_HAVE_PIPE',
'NN_HAVE_POLL',
'NN_USE_IFADDRS',
'NN_HAVE_MSG_CONTROL',
],
'direct_dependent_settings': {
# build nanomsg hub with same compiler flags as the library
Expand All @@ -15,6 +16,7 @@
'NN_HAVE_PIPE',
'NN_HAVE_POLL',
'NN_USE_IFADDRS',
'NN_HAVE_MSG_CONTROL',
],
'include_dirs': [
'deps/nanomsg/src',
Expand Down
11 changes: 9 additions & 2 deletions macosx.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@
'defines': [
'NN_HAVE_CLANG',
'NN_HAVE_OSX',
'NN_USE_KQUEUE',
'NN_HAVE_PIPE',
'NN_HAVE_POLL',
'NN_USE_KQUEUE',
'NN_USE_IFADDRS',
'NN_USE_EVENTFD',
'NN_HAVE_MSG_CONTROL',
],
'direct_dependent_settings': {
# build nanomsg hub with same compiler flags as the library
'defines': [
'NN_HAVE_CLANG',
'NN_HAVE_OSX',
'NN_USE_KQUEUE',
'NN_HAVE_PIPE',
'NN_HAVE_POLL',
'NN_USE_KQUEUE',
'NN_USE_IFADDRS',
'NN_USE_EVENTFD',
'NN_HAVE_MSG_CONTROL'
],
'include_dirs': [
'deps/nanomsg/src',
],
'cflags': [
'-Wall -Werror -Wno-unused -g -O2 -D_THREAD_SAFE'
],
}
}
2 changes: 2 additions & 0 deletions src/node_nanomsg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <inproc.h>
#include <ipc.h>
#include <tcp.h>
#include <tcpmux.h>
#include <ws.h>

using v8::Array;
using v8::Function;
Expand Down
1 change: 0 additions & 1 deletion test/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ test('retrieve symbol name/value', function (t) {
}
t.end();
});

24 changes: 24 additions & 0 deletions test/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ exports.symbols = [
'type': nn.NN_TYPE_NONE,
'unit': nn.NN_UNIT_NONE

},
{
'value': nn.NN_NS_EVENT,
'name': "NN_NS_EVENT",
'ns': nn.NN_NS_NAMESPACE,
'type': nn.NN_TYPE_NONE,
'unit': nn.NN_UNIT_NONE

},
{
'value': nn.NN_TYPE_NONE,
Expand Down Expand Up @@ -498,6 +506,22 @@ exports.symbols = [
'type': nn.NN_TYPE_NONE,
'unit': nn.NN_UNIT_NONE

},
{
'value': nn.NN_POLLIN,
'name': "NN_POLLIN",
'ns': 13,
'type': nn.NN_TYPE_NONE,
'unit': nn.NN_UNIT_NONE

},
{
'value': nn.NN_POLLOUT,
'name': "NN_POLLOUT",
'ns': 13,
'type': nn.NN_TYPE_NONE,
'unit': nn.NN_UNIT_NONE

},
{
'value': nn.EADDRINUSE,
Expand Down
2 changes: 2 additions & 0 deletions win.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'WIN32',
'NN_USE_LITERAL_IFADDR',
'NN_EXPORTS',
'NN_HAVE_STDINT',
],
'link_settings': {
'libraries': [
Expand All @@ -23,6 +24,7 @@
'WIN32',
'NN_USE_LITERAL_IFADDR',
'NN_EXPORTS',
'NN_HAVE_STDINT',
],
'include_dirs': [
'deps/nanomsg/src',
Expand Down

0 comments on commit 14ed122

Please sign in to comment.