No documentation

#2 · closed · 2 comments

View on GitHub ↗

shark0der

It's only specified in readme to look at demo/server.js for an example but the file seems to have deleted at some point.

Comments

glaszig

it's gone since #1. you can still find it in the [old tree](https://github.com/glaszig/node-dhcpd/blob/7350f282cba85a0cce038ef24442e9c3b1e34a91/demo/server.js). @konobi did some major refactoring and the constructor of `DHCPServer` appears to expect two objects now. the first must be the [type of the underlying socket](http://nodejs.org/api/dgram.html#dgram_dgram_createsocket_type_callback) and the second just an options hash with the broadcast address: ``` var server = new DHCPServer('udp4', { broadcast: '12.34.56.78' }); ```

konobi

You can have a look at how I've been using it in the https://github.com/konobi/forge repo.