netlinkwrapper1.1.1 • Public • Published
This is a simple node-gyp module wrapper for the C++ library netLink v1.0.0_pre6. Meaning this is a very simple wrapper for a very simple TCP library. Also, and perhaps most importantly, this is a TCP implementation that only works synchronously, as opposed to Node's asynchronous paradigm.
Obviously node's net module is far more suited for TCP communications that this module. However, the net module can only work asynchronously, as is node's design. However if you are in the very rare situation where you need synchronous reading of sockets across platforms then this may suit you.
How to use
As with most node modules, use npm to install it for you.
Note: node-gyp is a dependency.
As mentioned above, have node-gyp installed.
On Windows make sure you have the WIndows Build Tools installed (for ws2_32.lib). The most common way to attain these build tools is to just install Visual Studio 2013.
var netlinkwrapper = ;var netlink = ;netlink;netlink;netlink;whiletruevar str = netlink;console;
Docs can be found online at GitHub.
If you are looking for similar functionality, but without the node-gyp dependency I have made a similar (but much slower) module, SyncSocket.
Why the old version, and why that library?
Because it was the easiest for me to get working and met my needs.