version 2.75, 1996/01/31 22:40:47
|
version 2.76, 1996/02/09 19:26:52
|
Line 428 PUBLIC CONST char * HTGetHostName (void)
|
Line 428 PUBLIC CONST char * HTGetHostName (void)
|
*/ |
*/ |
PUBLIC void HTFreeHostName (void) |
PUBLIC void HTFreeHostName (void) |
{ |
{ |
FREE(hostname); |
HT_FREE(hostname); |
} |
} |
|
|
|
|
Line 544 PUBLIC CONST char * HTGetMailAddress (vo
|
Line 544 PUBLIC CONST char * HTGetMailAddress (vo
|
*/ |
*/ |
PUBLIC void HTFreeMailAddress (void) |
PUBLIC void HTFreeMailAddress (void) |
{ |
{ |
FREE(mailaddress); |
HT_FREE(mailaddress); |
} |
} |
|
|
|
|
Line 577 PUBLIC int HTDoConnect (HTNet * net, cha
|
Line 577 PUBLIC int HTDoConnect (HTNet * net, cha
|
if (!*host) { |
if (!*host) { |
HTRequest_addError(request, ERR_FATAL, NO, HTERR_NO_HOST, |
HTRequest_addError(request, ERR_FATAL, NO, HTERR_NO_HOST, |
NULL, 0, "HTDoConnect"); |
NULL, 0, "HTDoConnect"); |
free(fullhost); |
HT_FREE(fullhost); |
return HT_ERROR; |
return HT_ERROR; |
} |
} |
|
|
Line 628 PUBLIC int HTDoConnect (HTNet * net, cha
|
Line 628 PUBLIC int HTDoConnect (HTNet * net, cha
|
*/ |
*/ |
if (!status) { |
if (!status) { |
net->tcpstate = TCP_NEED_CONNECT; |
net->tcpstate = TCP_NEED_CONNECT; |
free(fullhost); |
HT_FREE(fullhost); |
HTNet_wait(net); |
HTNet_wait(net); |
return HT_PERSISTENT; |
return HT_PERSISTENT; |
} |
} |
Line 763 PUBLIC int HTDoConnect (HTNet * net, cha
|
Line 763 PUBLIC int HTDoConnect (HTNet * net, cha
|
TTYPrint(TDEST,"HTDoConnect. WOULD BLOCK `%s'\n",host); |
TTYPrint(TDEST,"HTDoConnect. WOULD BLOCK `%s'\n",host); |
HTEvent_Register(net->sockfd, request, (SockOps)FD_CONNECT, |
HTEvent_Register(net->sockfd, request, (SockOps)FD_CONNECT, |
net->cbf, net->priority); |
net->cbf, net->priority); |
free(fullhost); |
HT_FREE(fullhost); |
return HT_WOULD_BLOCK; |
return HT_WOULD_BLOCK; |
} |
} |
if (socerrno == EISCONN) { |
if (socerrno == EISCONN) { |
Line 810 PUBLIC int HTDoConnect (HTNet * net, cha
|
Line 810 PUBLIC int HTDoConnect (HTNet * net, cha
|
HTDNS_updateWeigths(net->dns, net->home, net->connecttime); |
HTDNS_updateWeigths(net->dns, net->home, net->connecttime); |
} |
} |
net->retry = 0; |
net->retry = 0; |
free(fullhost); |
HT_FREE(fullhost); |
net->tcpstate = TCP_BEGIN; |
net->tcpstate = TCP_BEGIN; |
return HT_OK; |
return HT_OK; |
break; |
break; |
Line 840 PUBLIC int HTDoConnect (HTNet * net, cha
|
Line 840 PUBLIC int HTDoConnect (HTNet * net, cha
|
HTRequest_addSystemError(request, ERR_FATAL,socerrno,NO,"connect"); |
HTRequest_addSystemError(request, ERR_FATAL,socerrno,NO,"connect"); |
HTDNS_delete(host); |
HTDNS_delete(host); |
net->retry = 0; |
net->retry = 0; |
free (fullhost); |
HT_FREE(fullhost); |
net->tcpstate = TCP_BEGIN; |
net->tcpstate = TCP_BEGIN; |
return HT_ERROR; |
return HT_ERROR; |
break; |
break; |