summaryrefslogtreecommitdiff
path: root/ace/LSOCK_Dgram.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/LSOCK_Dgram.h
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'ace/LSOCK_Dgram.h')
-rw-r--r--ace/LSOCK_Dgram.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/ace/LSOCK_Dgram.h b/ace/LSOCK_Dgram.h
new file mode 100644
index 00000000000..ec63e15a34e
--- /dev/null
+++ b/ace/LSOCK_Dgram.h
@@ -0,0 +1,61 @@
+/* -*- C++ -*- */
+// $Id$
+
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// LSOCK_Dgram.h
+//
+// = AUTHOR
+// Doug Schmidt
+//
+// ============================================================================
+
+#if !defined (ACE_LOCAL_SOCK_DGRAM_H)
+#define ACE_LOCAL_SOCK_DGRAM_H
+
+#include "ace/SOCK_Dgram.h"
+#include "ace/LSOCK.h"
+
+#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
+
+class ACE_Export ACE_LSOCK_Dgram : public ACE_SOCK_Dgram, public ACE_LSOCK
+ // = TITLE
+ // Create a Local ACE_SOCK datagram.
+{
+public:
+ // = Initialization methods.
+ ACE_LSOCK_Dgram (void);
+ // Default constructor.
+
+ ACE_LSOCK_Dgram (const ACE_Addr &local,
+ int protocol_family = PF_UNIX,
+ int protocol = 0);
+ // Initiate a local dgram.
+
+ int open (const ACE_Addr &local,
+ int protocol_family = PF_UNIX,
+ int protocol = 0);
+ // Initiate a local dgram.
+
+ ACE_HANDLE get_handle (void) const;
+ // Get handle.
+
+ void set_handle (ACE_HANDLE);
+ // Set handle.
+
+ void dump (void) const;
+ // Dump the state of an object.
+
+ ACE_ALLOC_HOOK_DECLARE;
+ // Declare the dynamic allocation hooks.
+};
+
+#include "ace/LSOCK_Dgram.i"
+
+#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
+#endif /* ACE_LOCAL_SOCK_DGRAM_H */