Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sub-descriptors, control descriptors, or another such term #75

Open
Assignees
Xe
Labels
questionFurther information is requested
@Xe

Description

A thought: abi.File should be expanded to contain the idea of a "sub-descriptor", "control descriptor" or another such term. This "sub-descriptor" would fulfill the place of ioctl, accept, stat and other more complicated syscalls. Programs could read/write any structured data in plain human-readable text or msgpack.

This would enable things like the following:

const fout = try Resource.open("file:///log.txt");
const fout_meta = try fout.control("meta"); // helper method?
const delta = "mode=0600";
const n = try fout_meta.write(delta.ptr, delta.len);
const l = try Resource.open("tcp://0.0.0.0:90?mode=host");
for {
 const client = try l.control("accept");
 const client_meta = try client.control("meta");
 // read IP address on first line and log?
 // handle request
 client.close();
}

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /