summaryrefslogtreecommitdiff
path: root/ace/adapter/ace/SOCK_Dgram_Mcast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/adapter/ace/SOCK_Dgram_Mcast.h')
-rw-r--r--ace/adapter/ace/SOCK_Dgram_Mcast.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/ace/adapter/ace/SOCK_Dgram_Mcast.h b/ace/adapter/ace/SOCK_Dgram_Mcast.h
new file mode 100644
index 00000000000..4204cd6b406
--- /dev/null
+++ b/ace/adapter/ace/SOCK_Dgram_Mcast.h
@@ -0,0 +1,45 @@
+// $Id$
+
+#ifndef ACE_ADAPTER_SOCK_DGRAM_MCAST_H
+#define ACE_ADAPTER_SOCK_DGRAM_MCAST_H
+#include "ace/pre.h"
+
+#include "../../SOCK_Dgram_Mcast.h"
+
+class ACE_SOCK_Dgram_Mcast_W : public ACE_SOCK_Dgram_Mcast
+{
+public:
+ ACE_SOCK_Dgram_Mcast_W (void)
+ {}
+
+ ~ACE_SOCK_Dgram_Mcast_W (void)
+ {}
+
+ int subscribe (const ACE_INET_Addr &mcast_addr,
+ int reuse_addr = 1,
+ const wchar_t *net_if = 0,
+ int protocol_family = PF_INET,
+ int protocol = 0)
+ {
+ return ACE_SOCK_Dgram_Mcast::subscribe (mcast_addr,
+ reuse_addr,
+ ACE_TEXT_WCHAR_TO_CHAR (net_if),
+ protocol_family,
+ protocol);
+ }
+
+ int unsubscribe (const ACE_INET_Addr &mcast_addr,
+ const wchar_t *net_if = 0,
+ int protocol_family = PF_INET,
+ int protocol = 0)
+ {
+ return ACE_SOCK_Dgram_Mcast::unsubscribe (mcast_addr,
+ ACE_TEXT_WCHAR_TO_CHAR (net_if),
+ protocol_family,
+ protocol);
+ }
+};
+
+#include "ace/post.h"
+#endif /* ACE_ADAPTER_SOCK_DGRAM_MCAST_H */
+