3 //=============================================================================
9 //=============================================================================
14 #include /**/ "ace/pre.h"
16 #include "ace/Flag_Manip.h"
17 #include "ace/os_include/sys/os_types.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 * @brief Defines the methods for the base class of the ACE_IO_SAP
29 * abstraction, which includes ACE_FILE and ACE_DEV.
31 class ACE_Export ACE_IO_SAP
36 /// Be consistent with Winsock
43 /// Interface for ioctl.
44 int control (int cmd
, void *) const;
46 // = Common I/O handle options related to files.
49 * Enable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
50 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
51 * which is passed as the @a value.
53 int enable (int value
) const;
56 * Disable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
57 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
58 * which is passed as the @a value.
60 int disable (int value
) const;
62 /// Get the underlying handle.
63 ACE_HANDLE
get_handle () const;
65 /// Set the underlying handle.
66 void set_handle (ACE_HANDLE handle
);
68 /// Dump the state of an object.
71 /// Declare the dynamic allocation hooks.
72 ACE_ALLOC_HOOK_DECLARE
;
75 /// Ensure that ACE_IO_SAP is an abstract base class.
79 /// Underlying I/O handle.
83 ACE_END_VERSIONED_NAMESPACE_DECL
85 #if defined (__ACE_INLINE__)
86 #include "ace/IO_SAP.inl"
87 #endif /* __ACE_INLINE__ */
89 #include /**/ "ace/post.h"
90 #endif /* ACE_IO_SAP_H */