domotz-remote-pawn
Version:
Domotz Agent
22 lines (19 loc) • 535 B
JavaScript
// Copyright (c) 2011 Andrew Paprocki
var Server = require('./server');
var Client = require('./client');
var Protocol = require('./protocol');
module.exports = {
Server: Server,
createServer: function (options, socket_opts) {
try {
return new Server(options, socket_opts);
} catch (e) {
console.warn('exception in dhcp socket creation');
}
},
Client: Client,
createClient: function (options) {
return new Client(options);
},
Protocol: Protocol,
};