summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-11-29 00:07:25 +0000
committerCharles.Forsyth <devnull@localhost>2007-11-29 00:07:25 +0000
commitef0540196bd7163f29ec3259e3fefb7a12d659dc (patch)
treece66a0cb518e31a35d3a6036923b637e244ed0e1 /module
parent9183b7e7129d1e3e9e828c716d56f2fde4a919b6 (diff)
20071128-2330
Diffstat (limited to 'module')
-rw-r--r--module/dial.m34
1 files changed, 34 insertions, 0 deletions
diff --git a/module/dial.m b/module/dial.m
new file mode 100644
index 00000000..1871317a
--- /dev/null
+++ b/module/dial.m
@@ -0,0 +1,34 @@
+Dial: module
+{
+ PATH: con "/dis/lib/dial.dis";
+
+ Connection: adt
+ {
+ dfd: ref Sys->FD;
+ cfd: ref Sys->FD;
+ dir: string;
+ };
+
+ Conninfo: adt
+ {
+ dir: string;
+ root: string;
+ spec: string;
+ lsys: string;
+ lserv: string;
+ rsys: string;
+ rserv: string;
+ laddr: string;
+ raddr: string;
+ };
+
+ announce: fn(addr: string): ref Connection;
+ dial: fn(addr, local: string): ref Connection;
+ listen: fn(c: ref Connection): ref Connection;
+ accept: fn(c: ref Connection): ref Sys->FD;
+ reject: fn(c: ref Connection, why: string): int;
+# parse: fn(addr: string): (string, string, string);
+
+ netmkaddr: fn(addr, net, svc: string): string;
+ netinfo: fn(c: ref Connection): ref Conninfo;
+};