diff options
| author | charles forsyth <charles.forsyth@gmail.com> | 2015-06-13 16:34:09 +0100 |
|---|---|---|
| committer | charles forsyth <charles.forsyth@gmail.com> | 2015-06-13 16:34:09 +0100 |
| commit | 62d7827bc358c000db9ff48fe61bd28ac352a884 (patch) | |
| tree | 3369436e1f4ccfabd4bd5a58632d26934b868688 /appl/cmd/listen.b | |
| parent | 15cdcc9295cbd45a03f77559b9de402033858a41 (diff) | |
mkfiles/mkfile-Linux-386
Diffstat (limited to 'appl/cmd/listen.b')
| -rw-r--r-- | appl/cmd/listen.b | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/appl/cmd/listen.b b/appl/cmd/listen.b index 61c5ecf9..8ccaa15b 100644 --- a/appl/cmd/listen.b +++ b/appl/cmd/listen.b @@ -151,12 +151,12 @@ listen1(drawctxt: ref Draw->Context, addr: string, argv: list of string, } sync <-= nil; - listench := chan of (int, ref Sys->Connection); - authch := chan of (string, ref Sys->Connection); + listench := chan of (int, ref Dial->Connection); + authch := chan of (string, ref Dial->Connection); spawn listener(listench, acon, addr); for (;;) { user := ""; - ccon: ref Sys->Connection; + ccon: ref Dial->Connection; alt { (lok, c) := <-listench => if (lok == -1){ @@ -187,7 +187,7 @@ listen1(drawctxt: ref Draw->Context, addr: string, argv: list of string, } } -listener(listench: chan of (int, ref Sys->Connection), c: ref Sys->Connection, addr: string) +listener(listench: chan of (int, ref Dial->Connection), c: ref Dial->Connection, addr: string) { for (;;) { nc := dial->listen(c); @@ -210,8 +210,8 @@ listener(listench: chan of (int, ref Sys->Connection), c: ref Sys->Connection, a } } -authenticator(authch: chan of (string, ref Sys->Connection), - c: ref Sys->Connection, algs: list of string, addr: string) +authenticator(authch: chan of (string, ref Dial->Connection), + c: ref Dial->Connection, algs: list of string, addr: string) { err: string; (c.dfd, err) = auth->server(algs, serverkey, c.dfd, 0); |
