version 1.72, 2015/10/25 14:11:37 |
version 1.73, 2015/10/25 14:42:02 |
|
|
tn(int argc, char *argv[]) |
tn(int argc, char *argv[]) |
{ |
{ |
struct addrinfo hints, *res, *res0; |
struct addrinfo hints, *res, *res0; |
int error; |
|
struct sockaddr_in sin; |
|
char *cmd, *hostp = 0, *portp = 0, *user = 0, *aliasp = 0; |
char *cmd, *hostp = 0, *portp = 0, *user = 0, *aliasp = 0; |
int retry; |
int error, retry; |
const int niflags = NI_NUMERICHOST; |
const int niflags = NI_NUMERICHOST; |
|
|
/* clear the socket address prior to use */ |
|
memset(&sin, 0, sizeof(sin)); |
|
|
|
if (connected) { |
if (connected) { |
printf("?Already connected to %s\r\n", hostname); |
printf("?Already connected to %s\r\n", hostname); |