Skip to content

Releases: reqshark/mill

v0.3.0

Choose a tag to compare

@reqshark reqshark released this 13 Apr 02:12

add libsodium

v0.2.3

Choose a tag to compare

@reqshark reqshark released this 06 Apr 07:26
  • better build w/ node configure
  • setup circleci
  • call sodium_init() when the module loads
  • test the first sodium call, *nbuf() for passing a nonce hex to node.js

v0.2.2

Choose a tag to compare

@reqshark reqshark released this 04 Apr 18:50
0.2.2

v0.2.1

Choose a tag to compare

@reqshark reqshark released this 29 Mar 04:22

fix for arm

v0.1.1

Choose a tag to compare

@reqshark reqshark released this 12 Jan 09:38
0.1.1

v0.1.0

Choose a tag to compare

@reqshark reqshark released this 12 Jan 06:35

udprecva(s, sz, fn)

a libuv integrated async version of udprecv operation.

the parameters are a listening socket, a maxsize in bytes of the inbound msg and a callback that will fire with an Object parameter containing the buffer buf and origin address addr of inbound. for example:

const lib = require('libmill')
const ipaddr = lib.iplocal(5555)
const s = lib.udplisten(ipaddr)
const recva = lib.udprecva

recva(s, 255, function (msg) {
  var buf = String(msg.buf) // msg.buf is a node buffer of the packet body
  var addr = msg.addr  // string address of packet origin
});

v0.0.9

Choose a tag to compare

@reqshark reqshark released this 10 Jan 22:14

access to udprecv api including deadlines