Lines Matching defs:host

135 	       "ttcp -t [-options] host\n"
170 char *host;
184 host = cmd_getarg(cmd,0);
185 if (!host) return ui_showusage(cmd);
191 * Look up remote host
194 if (isdigit(*host)) {
195 if (parseipaddr(host,hostaddr) < 0) {
196 xprintf("Invalid IP address: %s\n",host);
201 res = dns_lookup(host,hostaddr);
203 return ui_showerror(res,"Could not resolve IP address of host %s",host);
239 ui_showerror(res,"Could not connect to host %I",hostaddr);
330 printf("Remote host is no longer connected.\n");
341 char *host;
364 host = cmd_getarg(cmd,0);
365 if (!host) return -1;
374 if (isdigit(*host)) {
375 if (parseipaddr(host,hostaddr) < 0) {
376 xprintf("Invalid IP address: %s\n",host);
381 res = dns_lookup(host,hostaddr);
383 return ui_showerror(res,"Could not resolve IP address of host %s",host);
405 ui_showerror(res,"Could not connect to host %I",hostaddr);
420 printf("Could not connect to remote host\n");
425 printf("Connected to remote host.\n");
435 printf("Remote host is no longer connected.\n");
549 printf("No connection received from remote host\n");
563 printf("Remote host is no longer connected.\n");
657 char *host;
699 host = cmd_getarg(cmd,0);
700 if (!host) return ui_showusage(cmd);
702 if (isdigit(*host)) {
703 if (parseipaddr(host,hostaddr) < 0) {
704 return ui_showerror(-1,"Invalid IP address: %s\n",host);
708 res = dns_lookup(host,hostaddr);
710 return ui_showerror(res,"Could not resolve IP address of host %s",host);
726 ui_showerror(res,"Could not connect to host %I",hostaddr);
741 printf("Could not connect to remote host\n");
746 printf("Connected to remote host.\n");
760 printf("No connection received from remote host\n");