Unified · Split
| @@ -19,7 +19,7 @@ listen: fn(c: ref Connection): ref Connection; · 18 unmodified lines | |||
| 19 | accept: fn(c: ref Connection): ref Sys->FD; | 19 | accept: fn(c: ref Connection): ref Sys->FD; |
| 20 | reject: fn(c: ref Connection, why: string); | 20 | reject: fn(c: ref Connection, why: string); |
| 21 | 21 | ||
| 22 | netmkaddr: fn(net, host, svc: string): string; | 22 | netmkaddr: fn(addr, defnet, defsvc: string): string; |
| 23 | 23 | ||
| 24 | Conninfo: adt | 24 | Conninfo: adt |
| 25 | { | 25 | { |
| @@ -238,6 +238,25 @@ Use · 212 unmodified lines | |||
| 238 | to reject the incoming call; some networks will also tell the caller the reason | 238 | to reject the incoming call; some networks will also tell the caller the reason |
| 239 | .IR why . | 239 | .IR why . |
| 240 | .PP | 240 | .PP |
| 241 | .B Netmkaddr | ||
| 242 | makes | ||
| 243 | .I addr | ||
| 244 | into a full network address, | ||
| 245 | suitable for | ||
| 246 | .B dial | ||
| 247 | or | ||
| 248 | .BR announce . | ||
| 249 | It adds the default network | ||
| 250 | .I defnet | ||
| 251 | and a default service | ||
| 252 | .I defsvc | ||
| 253 | to the given | ||
| 254 | .I addr | ||
| 255 | as required, including | ||
| 256 | .RB ` ! ' | ||
| 257 | separators, | ||
| 258 | and returns the result. | ||
| 259 | .PP | ||
| 241 | Given a | 260 | Given a |
| 242 | .BR Connection , | 261 | .BR Connection , |
| 243 | .B netinfo | 262 | .B netinfo |