00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file LSOCK_Dgram.h 00006 * 00007 * $Id: LSOCK_Dgram.h 80826 2008-03-04 14:51:23Z wotte $ 00008 * 00009 * @author Doug Schmidt 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef ACE_LOCAL_SOCK_DGRAM_H 00015 #define ACE_LOCAL_SOCK_DGRAM_H 00016 #include /**/ "ace/pre.h" 00017 00018 #include /**/ "ace/config-all.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS) 00025 00026 #include "ace/SOCK_Dgram.h" 00027 #include "ace/LSOCK.h" 00028 00029 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class ACE_LSOCK_Dgram 00033 * 00034 * @brief Create a Local ACE_SOCK datagram. 00035 */ 00036 class ACE_Export ACE_LSOCK_Dgram : public ACE_SOCK_Dgram, public ACE_LSOCK 00037 { 00038 public: 00039 // = Initialization methods. 00040 /// Default constructor. 00041 ACE_LSOCK_Dgram (void); 00042 00043 /// Initiate a local dgram. 00044 ACE_LSOCK_Dgram (const ACE_Addr &local, 00045 int protocol_family = PF_UNIX, 00046 int protocol = 0); 00047 00048 /// Initiate a local dgram. 00049 int open (const ACE_Addr &local, 00050 int protocol_family = PF_UNIX, 00051 int protocol = 0); 00052 00053 /// Get handle. 00054 ACE_HANDLE get_handle (void) const; 00055 00056 /// Set handle. 00057 void set_handle (ACE_HANDLE); 00058 00059 /// Dump the state of an object. 00060 void dump (void) const; 00061 00062 /// Declare the dynamic allocation hooks. 00063 ACE_ALLOC_HOOK_DECLARE; 00064 }; 00065 00066 ACE_END_VERSIONED_NAMESPACE_DECL 00067 00068 #if defined (__ACE_INLINE__) 00069 #include "ace/LSOCK_Dgram.inl" 00070 #endif /* __ACE_INLINE__ */ 00071 00072 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */ 00073 #include /**/ "ace/post.h" 00074 #endif /* ACE_LOCAL_SOCK_DGRAM_H */