CppCMS

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

aio_category.h
1 //
2 // Copyright (C) 2009-2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOSTER_ERROR_CATEGORY_H
9 #define BOOSTER_ERROR_CATEGORY_H
10
11
12 #include <booster/system_error.h>
13
14 namespace booster {
15 namespace aio {
16
20 namespace aio_error {
21 enum {
22 ok,
23 canceled,
24 select_failed,
25 eof,
26 invalid_endpoint,
27 no_service_provided,
28 prefork_not_enabled
29 };
30
34 class BOOSTER_API category : public system::error_category {
35 public:
37 virtual char const *name() const;
39 virtual std::string message(int cat) const;
40 };
41
45 BOOSTER_API aio_error::category const &get_category();
46 }
47
51 BOOSTER_UNUSED static aio_error::category const &aio_error_cat = aio_error::get_category();
52 }
53 } // booster
54
55
56 #endif
booster::aio::aio_error::no_service_provided
The io_service was not assigned.
Definition: aio_category.h:27
booster::aio::aio_error::ok
No error.
Definition: aio_category.h:22
booster::aio::aio_error::category
Definition: aio_category.h:34
booster::aio::aio_error::eof
End of file occured.
Definition: aio_category.h:25
booster::aio::aio_error::invalid_endpoint
The provided endpoint (address) is not valid.
Definition: aio_category.h:26
booster::system::error_category
this class represents a category of errors.
Definition: system_error.h:34
booster::aio::aio_error::get_category
BOOSTER_API aio_error::category const & get_category()
booster::aio::aio_error::canceled
Operation was canceled.
Definition: aio_category.h:23
booster::aio::aio_error::prefork_not_enabled
Prefork acceptor support is not enabled.
Definition: aio_category.h:28
booster::aio::aio_error_cat
static BOOSTER_UNUSED aio_error::category const & aio_error_cat
Definition: aio_category.h:51
booster::locale::message
basic_message< char > message
Definition: message.h:494
booster::aio::aio_error::select_failed
It was impossible to perform select operation on the file descriptor.
Definition: aio_category.h:24
booster
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23