How to use the SOCK_STREAM function from bindings

Find comprehensive JavaScript bindings.SOCK_STREAM code examples handpicked from public code repositorys.

1
2
3
4
5
6
7
8
9
10
var Socket = require('net').Socket;

var bindings = require('bindings')('unix_stream.node');

/* bindings from C++ */
var SOCK_STREAM = bindings.SOCK_STREAM;
var AF_UNIX = bindings.AF_UNIX;
var bind = bindings.bind;
var getpeername = bindings.getpeername;
var getsockname = bindings.getsockname;
fork icon0
star icon9
watch icon2

+ 17 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)