©2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ux/uxaio.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2003 by Marc J. Rochkind. All rights reserved.
00003     May be copied only for purposes and under conditions described
00004     on the Web page www.basepath.com/aup/copyright.htm.
00005 
00006     The Example Files are provided "as is," without any warranty;
00007     without even the implied warranty of merchantability or fitness
00008     for a particular purpose. The author and his publisher are not
00009     responsible for any damages, direct or incidental, resulting
00010     from the use or non-use of these Example Files.
00011 
00012     The Example Files may contain defects, and some contain deliberate
00013     coding mistakes that were included for educational reasons.
00014     You are responsible for determining if and how the Example Files
00015     are to be used.
00016 
00017 */
00018 #ifndef _UXAIO_HPP_
00019 #define _UXAIO_HPP_
00020 
00021 #include <aio.h>
00022 
00023 namespace Ux {
00024 
00025 /**
00026     \ingroup Ux
00027 */
00028 class Aio : public aiocb, public Base {
00029 protected:
00030 
00031 public:
00032     Aio(void)
00033         {
00034             memset(this, 0, sizeof(struct aiocb));
00035         }
00036     int cancel(int fd);
00037     int error(void); // does not throw
00038     void sync(int op = O_SYNC);
00039     void read(void);
00040     ssize_t return_status(void); // can't call it return
00041     static void suspend(const struct aiocb *const list[], int cbcnt,
00042       const struct timespec *timeout = NULL);
00043     void write(void);
00044     static void listio(int mode, struct aiocb *const list[],
00045       int cbcnt, struct sigevent *sig = NULL);
00046 };
00047 
00048 } // namespace
00049 
00050 #endif // _UXAIO_HPP_

Generated on Fri Apr 23 10:57:04 2004 for AUP2 Example Source by doxygen 1.3.1