diff options
Diffstat (limited to 'ace/SOCK_CODgram.h')
-rw-r--r-- | ace/SOCK_CODgram.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ace/SOCK_CODgram.h b/ace/SOCK_CODgram.h new file mode 100644 index 00000000000..008a5a6f60e --- /dev/null +++ b/ace/SOCK_CODgram.h @@ -0,0 +1,55 @@ +/* -*- C++ -*- */ +// $Id$ + + +// ============================================================================ +// +// = LIBRARY +// ace +// +// = FILENAME +// SOCK_CODgram.h +// +// = AUTHOR +// Doug Schmidt +// +// ============================================================================ + +#if !defined (ACE_SOCK_CODGRAM_H) +#define ACE_SOCK_CODGRAM_H + +#include "ace/SOCK_IO.h" +#include "ace/Addr.h" + +class ACE_Export ACE_SOCK_CODgram : public ACE_SOCK_IO + // = TITLE + // Defines the member functions for the ACE_SOCK connected + // datagram abstraction. +{ +public: + // = Initialization methods. + ACE_SOCK_CODgram (void); + // Default constructor. + + ACE_SOCK_CODgram (const ACE_Addr &remote_sap, + const ACE_Addr &local_sap = ACE_Addr::sap_any, + int protocol_family = PF_INET, + int protocol = 0); + // Initiate a connected dgram. + + int open (const ACE_Addr &remote_sap, + const ACE_Addr &local_sap = ACE_Addr::sap_any, + int protocol_family = PF_INET, + int protocol = 0); + // Initiate a connected dgram. + + void dump (void) const; + // Dump the state of an object. + + ACE_ALLOC_HOOK_DECLARE; + // Declare the dynamic allocation hooks. +}; + +#include "ace/SOCK_CODgram.i" + +#endif /* ACE_SOCK_CODGRAM_H */ |