2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * WvURL is a simple URL-parsing class with built-in (though still somewhat
6 * inconvenient) DNS resolution.
12 #include "wvresolver.h"
19 WvUrl(WvStringParm url
);
20 WvUrl(const WvUrl
&url
);
24 { return port
!= 0 && (resolving
|| addr
!= NULL
); }
25 WvStringParm
errstr() const
27 bool resolve(); // dns-resolve the hostname (returns true if done)
29 operator WvString () const;
31 // not actually defined - this just prevents accidental copying
32 const WvUrl
&operator= (const WvUrl
&);
34 WvStringParm
getproto() const
37 // this one is ONLY valid if resolve() returns true!
38 const WvIPPortAddr
getaddr() const
39 { return addr
? *addr
: WvIPPortAddr(); }
41 WvStringParm
getfile() const
43 WvStringParm
gethost() const
47 WvStringParm
getuser() const
49 WvStringParm
getpassword() const
53 WvString proto
, hostname
, user
, password
;
62 // backwards compatibility