From d9b4adb18d862f77ae2b9222626344b08c5f01db Mon Sep 17 00:00:00 2001 From: jha Date: Tue, 10 Jul 2001 13:02:29 +0000 Subject: Changed PF_INET to ACE_PROTOCOL_FAMILY_INET. Multicast may work in specific cases, but not all. In particular, when it trys to search for all interfaces. --- ace/SOCK_Dgram_Bcast.h | 4 ++-- ace/SOCK_Dgram_Mcast.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ace/SOCK_Dgram_Bcast.h b/ace/SOCK_Dgram_Bcast.h index e16c0d2296b..aed64950c25 100644 --- a/ace/SOCK_Dgram_Bcast.h +++ b/ace/SOCK_Dgram_Bcast.h @@ -57,7 +57,7 @@ public: ACE_SOCK_Dgram_Bcast (void); ACE_SOCK_Dgram_Bcast (const ACE_Addr &local, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0, int reuse_addr = 0, const ACE_TCHAR *host_name = 0); @@ -69,7 +69,7 @@ public: /// Initiate a connectionless datagram broadcast endpoint. int open (const ACE_Addr &local, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0, int reuse_addr = 0, const ACE_TCHAR *host_name = 0); diff --git a/ace/SOCK_Dgram_Mcast.h b/ace/SOCK_Dgram_Mcast.h index 7d9269f0bd4..a2f03561e81 100644 --- a/ace/SOCK_Dgram_Mcast.h +++ b/ace/SOCK_Dgram_Mcast.h @@ -68,7 +68,7 @@ public: int subscribe (const ACE_INET_Addr &mcast_addr, int reuse_addr = 1, const ACE_TCHAR *net_if = 0, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0); /** @@ -85,7 +85,7 @@ public: */ int unsubscribe (const ACE_INET_Addr &mcast_addr, const ACE_TCHAR *net_if = 0, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0); /// Unsubscribe from a multicast group. Returns -1 if the call @@ -125,14 +125,14 @@ private: /// Not publically visible. int open (const ACE_Addr &mcast_addr, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0, int reuse_addr = 0); /// Not publically visible. int open (const ACE_Addr &mcast_addr, const ACE_QoS_Params &qos_params, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0, ACE_Protocol_Info *protocolinfo = 0, ACE_SOCK_GROUP g = 0, @@ -151,7 +151,7 @@ private: /// . int unsubscribe_ifs (const ACE_INET_Addr &mcast_addr, const ACE_TCHAR *net_if = 0, - int protocol_family = PF_INET, + int protocol_family = ACE_PROTOCOL_FAMILY_INET, int protocol = 0); // = Disable public use of s -- cgit v1.2.1