2 // ****************************************************************
4 #include "ace/OS_NS_string.h"
7 ACE_URL_Addr::ACE_URL_Addr (const ACE_URL_Addr& address)
9 url_ (address.url_ == 0 ? 0 : ACE_OS::strdup (address.url_))
13 ACE_INLINE ACE_URL_Addr&
14 ACE_URL_Addr::operator= (const ACE_URL_Addr& address)
23 ACE_INLINE const ACE_TCHAR *
24 ACE_URL_Addr::get_url () const
30 ACE_URL_Addr::set_url (ACE_TCHAR *url)
36 ACE_URL_Addr::hash () const
38 return ACE::hash_pjw (this->url_);
41 // ****************************************************************
43 ACE_INLINE ACE_HTTP_Addr&
44 ACE_HTTP_Addr::operator= (const ACE_HTTP_Addr& rhs)
53 ACE_INLINE ACE_INET_Addr
54 ACE_HTTP_Addr::get_inet_address () const
56 return ACE_INET_Addr (this->port_number_, this->hostname_);
59 ACE_INLINE const ACE_TCHAR *
60 ACE_HTTP_Addr::get_hostname () const
62 return this->hostname_;
66 ACE_HTTP_Addr::get_port_number () const
68 return this->port_number_;
71 ACE_INLINE const ACE_TCHAR *
72 ACE_HTTP_Addr::get_path () const
77 ACE_INLINE const ACE_TCHAR *
78 ACE_HTTP_Addr::get_query () const
83 // ****************************************************************
85 ACE_INLINE ACE_FTP_Addr&
86 ACE_FTP_Addr::operator= (const ACE_FTP_Addr& rhs)
95 ACE_INLINE const ACE_TCHAR *
96 ACE_FTP_Addr::get_user () const
101 ACE_INLINE const ACE_TCHAR *
102 ACE_FTP_Addr::get_hostname () const
104 return this->hostname_;
107 ACE_INLINE const ACE_TCHAR *
108 ACE_FTP_Addr::get_passwd () const
110 return this->password_;
113 ACE_INLINE const ACE_TCHAR *
114 ACE_FTP_Addr::get_path () const
119 ACE_INLINE ACE_INET_Addr
120 ACE_FTP_Addr::get_inet_address () const
122 return ACE_INET_Addr (ACE_TEXT ("ftp"), this->hostname_);
125 // ****************************************************************
127 ACE_INLINE ACE_Mailto_Addr&
128 ACE_Mailto_Addr::operator= (const ACE_Mailto_Addr& rhs)
137 ACE_INLINE const ACE_TCHAR *
138 ACE_Mailto_Addr::get_user () const
143 ACE_INLINE const ACE_TCHAR *
144 ACE_Mailto_Addr::get_hostname () const
146 return this->hostname_;
149 ACE_INLINE const ACE_TCHAR *
150 ACE_Mailto_Addr::get_headers () const
152 return this->headers_;