CppCMS
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,
25  eof,
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
The io_service was not assigned.
Definition: aio_category.h:27
No error.
Definition: aio_category.h:22
Definition: aio_category.h:34
End of file occured.
Definition: aio_category.h:25
The provided endpoint (address) is not valid.
Definition: aio_category.h:26
this class represents a category of errors.
Definition: system_error.h:34
BOOSTER_API aio_error::category const & get_category()
Operation was canceled.
Definition: aio_category.h:23
Prefork acceptor support is not enabled.
Definition: aio_category.h:28
static BOOSTER_UNUSED aio_error::category const & aio_error_cat
Definition: aio_category.h:51
basic_message< char > message
Definition: message.h:494
It was impossible to perform select operation on the file descriptor.
Definition: aio_category.h:24
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23