summaryrefslogtreecommitdiff
path: root/ace/ATM_Addr.h
diff options
context:
space:
mode:
authorruibiao <ruibiao@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-16 20:59:59 +0000
committerruibiao <ruibiao@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-16 20:59:59 +0000
commitb8ab7a04f984ed8fb9e04e6f6b485d58d16513b1 (patch)
treebded5ec0246310f18b9161dd8f24172918845ed9 /ace/ATM_Addr.h
parent957c3e7aee2fb9cd4f9bbdcee9a97f6ae8232281 (diff)
downloadATCD-b8ab7a04f984ed8fb9e04e6f6b485d58d16513b1.tar.gz
Add ACE_QoS class for ATM. Changes ATM_Addr class to add support for WinSock2 platforms.
Diffstat (limited to 'ace/ATM_Addr.h')
-rw-r--r--ace/ATM_Addr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/ATM_Addr.h b/ace/ATM_Addr.h
index 2f644c3bb95..c1631cd1c37 100644
--- a/ace/ATM_Addr.h
+++ b/ace/ATM_Addr.h
@@ -27,7 +27,12 @@
#if !defined (ACE_HAS_FORE_ATM_XTI)
typedef int ATMSAPAddress;
-#endif /* ACE_HAS_FORE_ATM_XTI */
+#elif defined (ACE_HAS_FORE_ATM_WS2)
+#include <winsock2.h>
+#include <ws2atm.h>
+
+typedef ATM_ADDRESS ATMSAPAddress;
+#endif /* ACE_HAS_FORE_ATM_XTI && ACE_HAS_FORE_ATM_WS2 */
class ACE_Export ACE_ATM_Addr : public ACE_Addr
{
@@ -145,12 +150,16 @@ protected:
// Get the local ATM address.
private:
+#if defined (ACE_HAS_FORE_ATM_XTI)
ATMSAPAddress atm_addr_;
// Underlying representation - this may be very
// vendor-implementation specific. Other vendors (besides FORE) may
// name and define this structure differently. We can work around
// that problem when we run into other vendors supporting XTI on top
// of ATM. Is this class specific to XTI? Not sure.
+#elif defined (ACE_HAS_FORE_ATM_WS2)
+ struct sockaddr_atm atm_addr_;
+#endif // ACE_HAS_FORE_ATM_XTI && ACE_HAS_FORE_ATM_WS2
};
#if defined (__ACE_INLINE__)