Skip to content

Releases: reqshark/mill

v0.3.0

13 Apr 02:12
Compare
Choose a tag to compare

add libsodium

v0.2.3

06 Apr 07:26
Compare
Choose a tag to compare
  • 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

04 Apr 18:50
Compare
Choose a tag to compare
0.2.2

v0.2.1

29 Mar 04:22
Compare
Choose a tag to compare

fix for arm

v0.1.1

12 Jan 09:38
Compare
Choose a tag to compare
0.1.1

v0.1.0

12 Jan 06:35
Compare
Choose a tag to compare

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

10 Jan 22:14
Compare
Choose a tag to compare

access to udprecv api including deadlines