diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-01-03 14:02:09 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-01-03 14:02:09 +0000 |
| commit | 38b761e890b1497089b6d623ae8bee952d1b8cc0 (patch) | |
| tree | 4a9d69672b8ec0f9f100952bef4026d84d2c4438 | |
| parent | b43c1ca5eb5fc65b93ae935a568432712797b049 (diff) | |
20080103-1408
| -rw-r--r-- | man/2/dial | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,7 +3,7 @@ Dial: accept, announce, dial, listen, netinfo, netmkaddr, reject \- make network connections .SH SYNOPSIS .EX -include "sys.m"; +include "dial.m"; dial := load Dial Dial->PATH; Connection: adt @@ -278,16 +278,16 @@ listener() { ac := dial->announce("tcp!*!9995"); if(ac == nil){ - sys->print("can't announce: %r\en"); + sys->print("can't announce: %r\n"); exit; } for(;;){ lc := dial->listen(ac); if(lc == nil){ - sys->print("listen: %r\en"); + sys->print("listen: %r\n"); exit; } - sys->print("incoming: %s\en", hd ctext(lc)); + sys->print("incoming: %s\n", hd ctext(lc)); spawn client(lc); } } @@ -296,7 +296,7 @@ client(c: ref Connection) { dfd := dial->accept(c); if(dfd == nil){ - sys->print("%s: can't accept: %r\en", c.dir); + sys->print("%s: can't accept: %r\n", c.dir); exit; } buf := array[Sys->ATOMICIO] of byte; |
