SOCK_CODgram.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    SOCK_CODgram.h
00006  *
00007  *  SOCK_CODgram.h,v 4.18 2005/11/26 03:13:13 ossama 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/ACE_export.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "ace/SOCK_IO.h"
00025 #include "ace/Addr.h"
00026 #include "ace/INET_Addr.h"
00027 
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 /**
00031  * @class ACE_SOCK_CODgram
00032  *
00033  * @brief Defines the member functions for the ACE_SOCK connected
00034  * datagram abstraction.
00035  */
00036 class ACE_Export ACE_SOCK_CODgram : public ACE_SOCK_IO
00037 {
00038 public:
00039   // = Initialization methods.
00040   /// Default constructor.
00041   ACE_SOCK_CODgram (void);
00042 
00043   ACE_SOCK_CODgram (const ACE_Addr &remote_sap,
00044                     const ACE_Addr &local_sap = ACE_Addr::sap_any,
00045                     int protocol_family = ACE_PROTOCOL_FAMILY_INET,
00046                     int protocol = 0,
00047                     int reuse_addr = 0);
00048 
00049   /// Default dtor.
00050   ~ACE_SOCK_CODgram (void);
00051 
00052   // Initiate a connected dgram.
00053 
00054   /// Initiate a connected dgram.
00055   int open (const ACE_Addr &remote_sap,
00056             const ACE_Addr &local_sap = ACE_Addr::sap_any,
00057             int protocol_family = ACE_PROTOCOL_FAMILY_INET,
00058             int protocol = 0,
00059             int reuse_addr = 0);
00060 
00061   // = Meta-type info.
00062   typedef ACE_INET_Addr PEER_ADDR;
00063 
00064   /// Dump the state of an object.
00065   void dump (void) const;
00066 
00067   /// Declare the dynamic allocation hooks.
00068   ACE_ALLOC_HOOK_DECLARE;
00069 };
00070 
00071 ACE_END_VERSIONED_NAMESPACE_DECL
00072 
00073 #if defined (__ACE_INLINE__)
00074 #include "ace/SOCK_CODgram.inl"
00075 #endif /* __ACE_INLINE__ */
00076 
00077 #include /**/ "ace/post.h"
00078 #endif /* ACE_SOCK_CODGRAM_H */

Generated on Thu Nov 9 09:42:04 2006 for ACE by doxygen 1.3.6