Giter Club home page Giter Club logo

dgram-broadcast's People

Contributors

dominictarr avatar staltz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dgram-broadcast's Issues

Error running example code

Without modifying anything about your example code from main github page, I get this error:

*Fedora 20, node v.0.10.28:
dgram.js:248
throw new TypeError('First argument must be a buffer object.');
^
TypeError: First argument must be a buffer object.
at Socket.send (dgram.js:248:11)
at Socket.socket.write (/home/q2dg/node_modules/broadcast-stream/index.js:16:12)
at null. (/home/q2dg/borrar:7:34)
at wrapper as _onTimeout
at Timer.listOnTimeout as ontimeout

*Fedora 20, node v.0.11.12:
dgram.js:242
throw new TypeError('First argument must be a buffer or string.');
^
TypeError: First argument must be a buffer or string.
at Socket.send (dgram.js:242:11)
at Socket.socket.write (/home/q2dg/node_modules/broadcast-stream/index.js:16:12)
at null. (/home/q2dg/borrar:7:34)
at wrapper as _onTimeout
at Timer.listOnTimeout (timers.js:133:15)

Error on process exit

dgram.js:630
    throw errnoException(err, 'dropMembership');
    ^

Error: dropMembership EINVAL
    at _errnoException (util.js:1021:11)
    at Socket.dropMembership (dgram.js:630:11)
    at process.<anonymous> (/Users/alan/Code/tableflip/vers/node_modules/broadcast-stream/index.js:12:12)
    at emitOne (events.js:115:13)
    at process.emit (events.js:210:7)
    at process.exit (internal/process.js:154:15)
    at process.on (/Users/alan/Code/tableflip/vers/index.js:28:15)
    at emitNone (events.js:105:13)
    at process.emit (events.js:207:7)
    at Signal.wrap.onsignal (internal/process.js:205:44)

IPv6 Support

I was talking to some folks in the dweb camp IRC and we were discussing how to get various protocols working and it was brought up that using something like CJDNS or Yggdrasil for routing could cause problems for SSB since it's local node discovery wouldn't work.

It'd be cool if this module had a fallback to use multicast in IPv6.

I think what would need to be done is:

  • Figuring out which IPv6 address to broadcast to. Maybe the "all nodes address" described here
  • Have an option to open up the IPv6 socket in tandem to the IPv4 socket (or can it be reused?)
  • Send outgoing data to both sockets, and merge incoming data from the socket into messages in the stream
  • Test with SSB in an IPv6 network

cc @staltz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.