00001 /* -*- C++ -*- */ 00002 00003 //============================================================================= 00004 /** 00005 * @file SOCK_CODgram.h 00006 * 00007 * $Id: SOCK_CODgram.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $ 00008 * 00009 * @author Doug Schmidt 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef ACE_SOCK_CODGRAM_H 00015 #define ACE_SOCK_CODGRAM_H 00016 #include "ace/pre.h" 00017 00018 #include "ace/SOCK_IO.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "ace/Addr.h" 00025 #include "ace/INET_Addr.h" 00026 00027 /** 00028 * @class ACE_SOCK_CODgram 00029 * 00030 * @brief Defines the member functions for the ACE_SOCK connected 00031 * datagram abstraction. 00032 */ 00033 class ACE_Export ACE_SOCK_CODgram : public ACE_SOCK_IO 00034 { 00035 public: 00036 // = Initialization methods. 00037 /// Default constructor. 00038 ACE_SOCK_CODgram (void); 00039 00040 ACE_SOCK_CODgram (const ACE_Addr &remote_sap, 00041 const ACE_Addr &local_sap = ACE_Addr::sap_any, 00042 int protocol_family = ACE_PROTOCOL_FAMILY_INET, 00043 int protocol = 0, 00044 int reuse_addr = 0); 00045 00046 /// Default dtor. 00047 ~ACE_SOCK_CODgram (void); 00048 00049 // Initiate a connected dgram. 00050 00051 /// Initiate a connected dgram. 00052 int open (const ACE_Addr &remote_sap, 00053 const ACE_Addr &local_sap = ACE_Addr::sap_any, 00054 int protocol_family = ACE_PROTOCOL_FAMILY_INET, 00055 int protocol = 0, 00056 int reuse_addr = 0); 00057 00058 // = Meta-type info. 00059 typedef ACE_INET_Addr PEER_ADDR; 00060 00061 /// Dump the state of an object. 00062 void dump (void) const; 00063 00064 /// Declare the dynamic allocation hooks. 00065 ACE_ALLOC_HOOK_DECLARE; 00066 }; 00067 00068 #if !defined (ACE_LACKS_INLINE_FUNCTIONS) 00069 #include "ace/SOCK_CODgram.i" 00070 #endif 00071 00072 #include "ace/post.h" 00073 #endif /* ACE_SOCK_CODGRAM_H */
1.2.14 written by Dimitri van Heesch,
© 1997-2002