Skip to content

kotarondo/blocking-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocking-socket

Build Status npm version

Blocking open/close/send/recv calls on unix domain sockets. These calls intentionally block the executing context. This module provides only simplest functionality implemented by a Node.js addon.

Installation

npm install blocking-socket

Using

var bs = require('blocking-socket');
var fd = bs.open('/tmp/socket123');
var sbuf = new Buffer('abcdef');
var transferred = bs.send(fd, sbuf);
var rbuf = new Buffer(4096);
var transferred = bs.recv(fd, rbuf);
var err = bs.close(fd);

About

intentionally blocking unix-domain-socket (addon for Node.js)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published