-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support DOOR32.SYS style socket descriptor sharing #175
Comments
Would love any sort of help on this |
Looks like you already referenced the thread[0] I found this[1] in... [0] nodejs/node#7627 |
@tracker1 Yeah, I think that's a dead end. Even if we have the descriptor, we can't just start doing I/O on the thing as it would throw the event system out of wack. Perhaps a shim: Where shim.exe would create a dropfile using enig's as a template or something. |
Finally got around to coding a solution to this. Introducing bivrost!. This utility will allow "bridging" between ENiGMA½'s shared socket server and a Added initial docs @ https://github.com/NuSkooler/enigma-bbs/blob/0.0.9-alpha/docs/modding/local-doors.md#shared-socket-descriptors See bivrost! and ArakNet hooked up boards for releases. This is intended to work under Linux as well. Closing this issue -- this and #163 should be good to go. If this doesn't work for you please log a new ticket here or in the bivrost! repo if it's a bug around that specifically. |
Modern Win32 and Linux doors often support only DOOR32.SYS and a shared socket descriptor for I/O. This is currently an issue in the Node.js world as socket descriptors cannot be shared. On Windows, a socket is required to be duplicated before being sent to a process as well.
To support this, some native support will need built in most likely. Something like:
DuplicateHandle()
on Windows to dupe socket FD (WSAXXX API requires PID to share to first, which we don't have)DOOR32.SYS
dropfile)data
eventwrite
Interesting resources:
The text was updated successfully, but these errors were encountered: