3 //=============================================================================
7 * $Id: IO_SAP.h 80826 2008-03-04 14:51:23Z wotte $
11 //=============================================================================
16 #include /**/ "ace/pre.h"
18 #include "ace/Flag_Manip.h"
19 #include "ace/os_include/sys/os_types.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @brief Defines the methods for the base class of the ACE_IO_SAP
32 * abstraction, which includes ACE_FILE and ACE_DEV.
34 class ACE_Export ACE_IO_SAP
39 /// Be consistent with Winsock
46 /// Interface for ioctl.
47 int control (int cmd
, void *) const;
49 // = Common I/O handle options related to files.
52 * Enable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
53 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
54 * which is passed as the @a value.
56 int enable (int value
) const;
59 * Disable asynchronous I/O (ACE_SIGIO), urgent data (ACE_SIGURG),
60 * non-blocking I/O (ACE_NONBLOCK), or close-on-exec (ACE_CLOEXEC),
61 * which is passed as the @a value.
63 int disable (int value
) const;
65 /// Get the underlying handle.
66 ACE_HANDLE
get_handle (void) const;
68 /// Set the underlying handle.
69 void set_handle (ACE_HANDLE handle
);
71 /// Dump the state of an object.
72 void dump (void) const;
74 /// Declare the dynamic allocation hooks.
75 ACE_ALLOC_HOOK_DECLARE
;
78 /// Ensure that ACE_IO_SAP is an abstract base class.
82 /// Underlying I/O handle.
85 /// Cache the process ID.
89 ACE_END_VERSIONED_NAMESPACE_DECL
91 #if defined (__ACE_INLINE__)
92 #include "ace/IO_SAP.inl"
93 #endif /* __ACE_INLINE__ */
95 #include /**/ "ace/post.h"
96 #endif /* ACE_IO_SAP_H */