Added handler loop, and event

This commit is contained in:
king
2026-02-23 20:46:52 +01:00
parent fb38f17e48
commit 2a15a70af4
2 changed files with 3 additions and 7 deletions

View File

@@ -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());

View File

@@ -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]
}