Implement support for callback style programming
- Apr 02, 2021
-
-
Deucе authored
-
Deucе authored
-
Deucе authored
Add new methods: dns.resolve(host, callback[, thisObj]); dns.reverse(ip, callback[, thisObj]); dns.resolveMX(ip, callback[, thisObj]); dns.resolveTypeClass(host, type, class, callback[, thisObj]); This is now actually useful. :)
-
Deucе authored
Alas, no nameservers actually support this. :(
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
(Except header *sigh*)
-
Deucе authored
-
- Apr 01, 2021
-
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
Fix event socket counting to include one for the console events. Grab the input lock for SSH input as well.
-
Deucе authored
We can't seach for the js object in a finalizer as it will call resolve functions which can allocate, and the objects we are searching in may not exist anymore. Also, in console.cpp, we have direct access to sbbs->js_callback so there's no need to find the js object to get the js_callback_t.
-
Deucе authored
This provides a crappy way to check if your events have been lost.
-
Deucе authored
This allows console.on() to take effect immediately rather than up to a second later.
-
Deucе authored
This may block for up to a second before checking for input though, so more work needs to be done.
-
Deucе authored
-
Deucе authored
This still doesn't fix the console thing though.
-
Deucе authored
-
Deucе authored
-
- Mar 31, 2021
-
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
This allows us to quit running the script when exit() is called.
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
Exception is thrown if events are not supported.
-
Deucе authored
Fixes the last-minute fix adding in the previous commit.
-
Deucе authored
Also, don't use ev->next after free()ing it.
-
Deucе authored
Also add support in services.
-
Deucе authored
Such issues.
-
Deucе authored
This uses socketpair() and has not been tested on Win32. I'm sure it's fine.
-
Deucе authored
This will allow us to select() oddball events.
-
Deucе authored
-
Deucе authored
This way we can just JSFunction, JSObject, and SOCKET.
-
Deucе authored
-
Deucе authored
Using select(). I think we actually need a poll()/select() compile-time option.
-
Deucе authored
Seems pretty good actually.
-
Deucе authored
Also, fix termination checking.
-
Deucе authored
this is fine
-
Deucе authored
This appears to work and the event handler *should* work on other event types already. Note, this is *nix-only due to the use of poll(). select() will need to be used for Windows to keep XP compatability.
-