Home | History | Annotate | Download | only in lib

Lines Matching refs:STRING_FTPPORT

1001   char *string_ftpport = data->set.str[STRING_FTPPORT];
1015 if(data->set.str[STRING_FTPPORT] &&
1016 (strlen(data->set.str[STRING_FTPPORT]) > 1)) {
1019 size_t addrlen = INET6_ADDRSTRLEN > strlen(string_ftpport) ?
1020 INET6_ADDRSTRLEN : strlen(string_ftpport);
1022 size_t addrlen = INET_ADDRSTRLEN > strlen(string_ftpport) ?
1023 INET_ADDRSTRLEN : strlen(string_ftpport);
1025 char *ip_start = string_ftpport;
1035 if(*string_ftpport == '[') {
1037 ip_start = string_ftpport + 1;
1038 if((ip_end = strchr(string_ftpport, ']')) != NULL)
1043 if(*string_ftpport == ':') {
1045 ip_end = string_ftpport;
1047 else if((ip_end = strchr(string_ftpport, ':')) != NULL) {
1050 if(Curl_inet_pton(AF_INET6, string_ftpport, sa6) == 1) {
1053 strcpy(addr, string_ftpport);
1059 strncpy(addr, string_ftpport, ip_end - ip_start);
1063 strcpy(addr, string_ftpport);