Skip to content

RichardAH/unix-seqpacket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unix-seqpacket

Add unix domain socket sock_seqpacket support to nodejs

Install

npm install unix-seqpacket

Use

const seq = require('unix-seqpacket')
const fs = require('fs')
let sock_fd = seq.open('/some/domain/socket.sock')
let read_bytes = fs.readSync(sock_fd)

// ... also can use seq.available(sock_fd) to get the number of bytes immediately available for reading

seq.close(sock_fd);

About

Add unix domain socket sock_seqpacket support to nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published