Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / IPC_SAP.h
blobdce2fabb6fcee60d9e8b9107a867c433496a3305
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file IPC_SAP.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_IPC_SAP_H
12 #define ACE_IPC_SAP_H
13 #include /**/ "ace/pre.h"
15 #include "ace/Flag_Manip.h"
16 #include "ace/os_include/sys/os_types.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
24 /**
25 * @class ACE_IPC_SAP
27 * @brief Defines the member functions for the base class of the
28 * ACE_IPC_SAP abstraction.
30 class ACE_Export ACE_IPC_SAP
32 public:
33 /// Interface for <ioctl>.
34 int control (int cmd, void *) const;
36 // = Common I/O handle options related to sockets.
38 /**
39 * Enable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
40 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
41 * which is passed as the @a value.
43 int enable (int value) const;
45 /**
46 * Disable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
47 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
48 * which is passed as the @a value.
50 int disable (int value) const;
52 /// Get the underlying handle.
53 ACE_HANDLE get_handle () const;
55 /// Set the underlying handle.
56 void set_handle (ACE_HANDLE handle);
58 /// Dump the state of an object.
59 void dump () const;
61 /// Declare the dynamic allocation hooks.
62 ACE_ALLOC_HOOK_DECLARE;
64 protected:
65 // = Ensure that ACE_IPC_SAP is an abstract base class.
66 /// Default constructor.
67 ACE_IPC_SAP ();
69 /// Protected destructor.
70 /**
71 * Not a virtual destructor. Protected destructor to prevent
72 * operator delete() from being called through a base class
73 * ACE_IPC_SAP pointer/reference.
75 ~ACE_IPC_SAP ();
77 private:
78 /// Underlying I/O handle.
79 ACE_HANDLE handle_;
82 ACE_END_VERSIONED_NAMESPACE_DECL
84 #if defined (__ACE_INLINE__)
85 #include "ace/IPC_SAP.inl"
86 #endif /* __ACE_INLINE__ */
88 #include /**/ "ace/post.h"
89 #endif /* ACE_IPC_SAP_H */