Added handler loop, and event
This commit is contained in:
@@ -144,7 +144,7 @@ let i = 0;
|
||||
log("+++ Creating uloop handle using fd: ");
|
||||
const handle = uloop.handle(p[1],(e) => {
|
||||
if(e & uloop.ULOOP_WRITE)
|
||||
log("Write event " + p[0].read(128));
|
||||
log("Write event " + p[0].read(1024));
|
||||
},uloop.ULOOP_READ);
|
||||
|
||||
log("Created Handle for Event Messages - Event Handle:\n" + handle.fileno());
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
const event_fns = [];
|
||||
|
||||
// Set endpoint options, takes a user object wich contains the userId wich is a hash formed from tunnel ip and public key
|
||||
function set_endpoint() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
event_fns[0] = set_endpoint
|
||||
|
||||
return {
|
||||
event_fns: event_fns
|
||||
event_fns: [set_endpoint]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user