28 static const StrLen_t k_SizeMax = (k_NET_HOSTNAME_MAX + 1024);
29 static const char k_DirSep =
'/';
30 static const char k_ServiceSep[4];
32 #define NET_DirSep "/"
34 static const char k_NetURLSafe[];
35 static const char k_NetURLUnsafe[];
46 void SetObject2(
const char* pszObj);
57 HRESULT SetURL(
const char* pszURL, DWORD dwFlags = 0);
58 HRESULT SetObject(
const char* pszObject);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
NET_PORT_t m_wPort
the port (ex.80 = default HTTP). k_NET_PORT_INVALID = 0 =use default for m_eServiceType.
Definition: cNetURL.h:41
cStringA m_sServer
domain/Hostname or IP. cNetAddrName::IsValidHostNameChar()
Definition: cNetURL.h:40
cStringA m_sUsername
if supplied as part of the URL.
Definition: cNetURL.h:38
cStringA m_sPassword
if supplied as part of the URL.
Definition: cNetURL.h:39
cStringA m_sObject
"/dir/dir/object/object.ext"
Definition: cNetURL.h:42
NETSERVICE_TYPE m_eServiceType
known prefix for service. AKA resource_type. e.g. NETSERVICE_http
Definition: cNetURL.h:37
cStringA m_sExtra
extra information/arguments (e.g. "?foo" or "#foo")
Definition: cNetURL.h:43
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)
NETSERVICE_TYPE
Definition: cNetPort.h:32
@ NETSERVICE_UNDEF
undefined service.
Definition: cNetPort.h:37
const StrLen_t k_StrLen_UNK
use the default/current length of the string argument.
Definition: StrConst.h:34
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32