blob: b01d8c20e2d0bb015960e82927fb63a780a6bc9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Endpoints: module {
PATH: con "/dis/alphabet/endpoints.dis";
Endpoint: adt {
addr: string;
id: string;
about: string;
text: fn(e: self Endpoint): string;
mk: fn(s: string): Endpoint;
};
init: fn();
new: fn(net, addr: string, force: int): string;
create: fn(addr: string): (ref Sys->FD, Endpoint);
open: fn(net: string, ep: Endpoint): (ref Sys->FD, string);
};
|