How to use the AF_UNIX function from bindings

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

1
2
3
4
5
6
7
8
9
10
11
12
var dgram = require('dgram');
var util = require('util');
var binding = require('bindings')('unix_dgram.node');


var SOCK_DGRAM  = binding.SOCK_DGRAM;
var AF_UNIX     = binding.AF_UNIX;


var socket  = binding.socket || unsupported;
var bind    = binding.bind || unsupported;
var connect = binding.connect || unsupported;
fork icon32
star icon74
watch icon0

2
3
4
5
6
7
8
9
10
11

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;
var socket = bindings.socket;
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)