diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-10-02 17:54:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-10-02 17:54:47 +0000 |
commit | a985552dae2b98899a603977cfd747b5c3449aeb (patch) | |
tree | 3f44277a13494a7c60060259cf2998f1b2a94474 /ace/INET_Addr.h | |
parent | 78f8a3779e76196afadd536e3d958374ba5fc338 (diff) | |
download | ATCD-a985552dae2b98899a603977cfd747b5c3449aeb.tar.gz |
ChangeLogTag:Sat Oct 2 12:50:43 1999 Douglas C. Schmidt <schmidt@danzon.cs.wustl.edu>
Diffstat (limited to 'ace/INET_Addr.h')
-rw-r--r-- | ace/INET_Addr.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ace/INET_Addr.h b/ace/INET_Addr.h index 4958e08e0ed..64fee4a14e3 100644 --- a/ace/INET_Addr.h +++ b/ace/INET_Addr.h @@ -41,7 +41,9 @@ public: ACE_INET_Addr (const sockaddr_in *, int len); // Creates an <ACE_INET_Addr> from a sockaddr_in structure. - ACE_INET_Addr (u_short port_number, const ASYS_TCHAR host_name[]); + ACE_INET_Addr (u_short port_number, + const ASYS_TCHAR host_name[], + const ASYS_TCHAR protocol[] = "tcp"); // Creates an <ACE_INET_Addr> from a <port_number> and the remote // <host_name>. @@ -59,12 +61,14 @@ public: // are in host byte order. ACE_INET_Addr (const ASYS_TCHAR port_name[], - const ASYS_TCHAR host_name[]); + const ASYS_TCHAR host_name[], + const ASYS_TCHAR protocol[] = "tcp"); // Uses <getservbyname> to create an <ACE_INET_Addr> from a // <port_name> and the remote <host_name>. ACE_INET_Addr (const ASYS_TCHAR port_name[], - ACE_UINT32 ip_addr); + ACE_UINT32 ip_addr, + const ASYS_TCHAR protocol[] = "tcp"); // Uses <getservbyname> to create an <ACE_INET_Addr> from a // <port_name> and an Internet <ip_addr>. This method assumes that // <ip_addr> is in host byte order. @@ -97,12 +101,14 @@ public: // passed straight through. int set (const ASYS_TCHAR port_name[], - const ASYS_TCHAR host_name[]); + const ASYS_TCHAR host_name[], + const ASYS_TCHAR protocol[] = "tcp"); // Uses <getservbyname> to initialize an <ACE_INET_Addr> from a // <port_name> and the remote <host_name>. int set (const ASYS_TCHAR port_name[], - ACE_UINT32 ip_addr); + ACE_UINT32 ip_addr, + const ASYS_TCHAR protocol[] = "tcp"); // Uses <getservbyname> to initialize an <ACE_INET_Addr> from a // <port_name> and an Internet address. This assumes that <ip_addr> // is already in network byte order. |