crypted-udp
CryptedUDP ===========
Last updated 6 years ago by maxsvargal .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install crypted-udp 
SYNC missed versions from official npm registry.

CryptedUDP

JSON-RPC with AES-256-CBC crypted UDP sockets over IPv4 for NodeJs

  node = new CryptedUdp
    address: '127.0.0.1'
    port: 41235
    id: 'da39a3ee5e6b4b0d3255bfef95601890afd80709' # optional sha1 unique client self id
  
  node.on 'message', (msg) ->
    console.log msg

  node.connect '127.0.0.1', 41236, ->
    @send { foo: "bar" }, (msg) ->
      JSON.stringify msg

  # Also  
  peer = node.connect '127.0.0.1', 41236
  peer.send { foo: "bar" }, (msg) ->
    JSON.stringify msg
    

Tests

You need mocha installed

npm test

Compile to JavaScript

npm run-script compile

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |