00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ACE_LOCAL_SOCK_CODGRAM_H
00015 #define ACE_LOCAL_SOCK_CODGRAM_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
00023
00024 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
00025
00026 #include "ace/LSOCK.h"
00027 #include "ace/SOCK_CODgram.h"
00028 #include "ace/Addr.h"
00029
00030
00031
00032
00033
00034
00035
00036 class ACE_Export ACE_LSOCK_CODgram : public ACE_SOCK_CODgram, public ACE_LSOCK
00037 {
00038 public:
00039
00040
00041 ACE_LSOCK_CODgram (void);
00042
00043
00044 ACE_LSOCK_CODgram (const ACE_Addr &remote_sap,
00045 const ACE_Addr &local_sap = ACE_Addr::sap_any,
00046 int protocol_family = PF_UNIX,
00047 int protocol = 0);
00048
00049
00050 int open (const ACE_Addr &remote_sap,
00051 const ACE_Addr &local_sap = ACE_Addr::sap_any,
00052 int protocol_family = PF_UNIX,
00053 int protocol = 0);
00054
00055
00056 ACE_HANDLE get_handle (void) const;
00057
00058
00059 void set_handle (ACE_HANDLE);
00060
00061
00062 void dump (void) const;
00063
00064
00065 ACE_ALLOC_HOOK_DECLARE;
00066 };
00067
00068 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00069 #include "ace/LSOCK_CODgram.i"
00070 #endif
00071
00072 #endif
00073 #include "ace/post.h"
00074 #endif