From 46439007cf417cbd9ac8049bb4122c890097a0fa Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 20:52:35 +0000 Subject: 20060303-partial --- module/alphabet/endpoints.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 module/alphabet/endpoints.m (limited to 'module/alphabet/endpoints.m') diff --git a/module/alphabet/endpoints.m b/module/alphabet/endpoints.m new file mode 100644 index 00000000..b01d8c20 --- /dev/null +++ b/module/alphabet/endpoints.m @@ -0,0 +1,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); +}; -- cgit v1.2.3