diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-29 15:09:38 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-29 15:09:38 +0100 |
| commit | 170ff9d45744c9a94d26be32709fb3f616ba141a (patch) | |
| tree | 2e729b710b4f627d2c0e22e31a1884b373418e22 /appl/grid/lib/announce.b | |
| parent | 384c797555910dfba6362bec98a74a6564fb3478 (diff) | |
convert to use Dial module
Diffstat (limited to 'appl/grid/lib/announce.b')
| -rw-r--r-- | appl/grid/lib/announce.b | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/appl/grid/lib/announce.b b/appl/grid/lib/announce.b index b29dfe42..54438b59 100644 --- a/appl/grid/lib/announce.b +++ b/appl/grid/lib/announce.b @@ -1,6 +1,8 @@ implement Announce; include "sys.m"; sys: Sys; +include "dial.m"; + dial: Dial; include "grid/announce.m"; init() @@ -11,8 +13,8 @@ init() announce(): (string, ref Sys->Connection) { sysname := readfile("/dev/sysname"); - (ok, c) := sys->announce("tcp!*!0"); - if(ok == -1) + c := dial->announce("tcp!*!0"); + if(c == nil) return (nil, nil); local := readfile(c.dir + "/local"); if(local == nil) @@ -25,7 +27,7 @@ announce(): (string, ref Sys->Connection) return (nil, nil); if(port[len port - 1] == '\n') port = port[0:len port - 1]; - return ("tcp!" + sysname + "!" + port, ref c); + return ("tcp!" + sysname + "!" + port, c); } |
