diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-20 07:53:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-20 07:53:24 +0000 |
commit | b7a760046545fa9afc3feca68d12dc087fbe625c (patch) | |
tree | 292e468bc07f8c59917ab2f078343ac6bed5b354 /lib/urldata.h | |
parent | 111a2f3057b3a13cb91e3c5a702bd1254f774dbb (diff) |
Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed-
length limit of the hostname part of the URL.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 1da835126..a4040d15e 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -427,14 +427,15 @@ struct connectdata { struct sockaddr_in serv_addr; #endif char protostr[64]; /* store the protocol string in this buffer */ - char gname[513]; /* store the hostname in this buffer */ - char *name; /* host name pointer to fool around with */ - char *path; /* allocated buffer to store the URL's path part in */ - char *hostname; /* hostname to connect, as parsed from url */ + char *namebuffer; /* allocated buffer to store the hostname in */ + char *hostname; /* hostname to use, as parsed from url. points to + somewhere within the namebuffer[] area */ + char *pathbuffer;/* allocated buffer to store the URL's path part in */ + char *path; /* path to use, points to somewhere within the pathbuffer + area */ long port; /* which port to use locally */ unsigned short remote_port; /* what remote port to connect to, not the proxy port! */ - char *ppath; curl_off_t bytecount; long headerbytecount; /* only count received headers */ long deductheadercount; /* this amount of bytes doesn't count when we check |