Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LSOCK_Dgram.h

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

Generated on Mon Jun 16 11:20:03 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002