@daugasauron/dolly-host-sockets 0.0.0-stage → 0.1.4-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
- # Temporary Holding Version
1
+ # @daugasauron/dolly-host-sockets
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Dolly's `sockets@0` host module: local stream sockets between processes. Give the URL of its
4
+ `module.json` to `boot()`'s `modules`; @daugasauron/dolly's README says how.
package/abi.mjs ADDED
@@ -0,0 +1,20 @@
1
+ // Generated from host/sockets/dolly-sockets-0.wat, host/sockets/sockets.h, include/dolly/process.h.
2
+ export const DOLLY_SOCKET_CREATE = 160;
3
+ export const DOLLY_SOCKET_PAIR = 161;
4
+ export const DOLLY_SOCKET_BIND = 162;
5
+ export const DOLLY_SOCKET_LISTEN = 163;
6
+ export const DOLLY_SOCKET_ACCEPT = 164;
7
+ export const DOLLY_SOCKET_CONNECT = 165;
8
+ export const DOLLY_SOCKET_SHUTDOWN = 166;
9
+ export const DOLLY_SOCKET_SEND = 167;
10
+ export const DOLLY_SOCKET_RECEIVE = 168;
11
+ export const DOLLY_SOCKET_NAME = 169;
12
+ export const DOLLY_SOCKET_CLOEXEC = 1;
13
+ export const DOLLY_SOCKET_NONBLOCK = 2;
14
+ export const DOLLY_SOCKET_DONTWAIT = 1;
15
+ export const DOLLY_SOCKET_PEER = 1;
16
+ export const DOLLY_SOCKET_SHUTDOWN_READ = 1;
17
+ export const DOLLY_SOCKET_SHUTDOWN_WRITE = 2;
18
+ export const DOLLY_SOCKET_PATH_MAX = 107;
19
+ export const DOLLY_ERRNO = Object.freeze({ E2BIG: 1, EACCES: 2, EADDRINUSE: 3, EADDRNOTAVAIL: 4, EAFNOSUPPORT: 5, EAGAIN: 6, EALREADY: 7, EBADF: 8, EBADMSG: 9, EBUSY: 10, ECANCELED: 11, ECHILD: 12, ECONNABORTED: 13, ECONNREFUSED: 14, ECONNRESET: 15, EDEADLK: 16, EDESTADDRREQ: 17, EDOM: 18, EDQUOT: 19, EEXIST: 20, EFAULT: 21, EFBIG: 22, EHOSTUNREACH: 23, EIDRM: 24, EILSEQ: 25, EINPROGRESS: 26, EINTR: 27, EINVAL: 28, EIO: 29, EISCONN: 30, EISDIR: 31, ELOOP: 32, EMFILE: 33, EMLINK: 34, EMSGSIZE: 35, EMULTIHOP: 36, ENAMETOOLONG: 37, ENETDOWN: 38, ENETRESET: 39, ENETUNREACH: 40, ENFILE: 41, ENOBUFS: 42, ENODEV: 43, ENOENT: 44, ENOEXEC: 45, ENOLCK: 46, ENOLINK: 47, ENOMEM: 48, ENOMSG: 49, ENOPROTOOPT: 50, ENOSPC: 51, ENOSYS: 52, ENOTCONN: 53, ENOTDIR: 54, ENOTEMPTY: 55, ENOTRECOVERABLE: 56, ENOTSOCK: 57, ENOTTY: 59, ENXIO: 60, EOVERFLOW: 61, EOWNERDEAD: 62, EPERM: 63, EPIPE: 64, EPROTO: 65, EPROTONOSUPPORT: 66, EPROTOTYPE: 67, ERANGE: 68, EROFS: 69, ESPIPE: 70, ESRCH: 71, ESTALE: 72, ETIMEDOUT: 73, ETXTBSY: 74, EXDEV: 75, ENODATA: 116, ENOTSUP: 138 });
20
+ export const DOLLY_SOCKETS_ABI_DIGEST = "464cb0e8d223172e368cefdfba09900c27507841834b6bceb65aa4246ab5f508";
package/module.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "sockets",
3
+ "version": 0,
4
+ "gives": "local stream sockets between processes",
5
+ "dependencies": ["runtime@0"],
6
+ "imports": [],
7
+ "host": "sockets.mjs",
8
+ "contracts": [],
9
+ "process": ["dolly-sockets-0.wat"],
10
+ "headers": ["sockets.h", "sockets-abi.h"],
11
+ "kernel": ["kernel.c"],
12
+ "client": ["client.c"],
13
+ "package": "libdolly-sockets"
14
+ }
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
+ "version": "0.1.4-rc.0",
3
+ "type": "module",
2
4
  "name": "@daugasauron/dolly-host-sockets",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
5
+ "license": "MIT",
6
+ "dependencies": {
7
+ "@daugasauron/dolly": "0.1.4-rc.0"
8
+ },
9
+ "description": "Dolly's sockets@0 host module: local stream sockets between processes.",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/daugasauron/dolly.git"
13
+ }
14
+ }
package/sockets.mjs ADDED
@@ -0,0 +1,2 @@
1
+ // Local sockets are kernel state only: no page or Worker side, no import.
2
+ export { DOLLY_SOCKETS_ABI_DIGEST as digest } from "./abi.mjs";