Implementation details for the ana project dealing with timers. More...
#include <boost/bind.hpp>#include <boost/thread.hpp>#include "buffers.hpp"

Go to the source code of this file.
Classes | |
| class | ana::timer |
| General purpose asynchronous timer. More... | |
| class | ana::detail::timed_sender |
| A network sender component that can be configured to issue timeout events. More... | |
Namespaces | |
| namespace | ana |
Namespace for project ana, the entire API is under this namespce. | |
| namespace | ana::time |
Time conversion functions. | |
| namespace | ana::detail |
Used for implementation purposes. | |
Typedefs | |
Timers | |
| typedef boost::asio::basic_deadline_timer < std::time_t, detail::time_t_traits > | ana::boost_timer |
| A boost::asio::basic_deadline_timer, can be used externally. | |
Enumerations | |
| enum | ana::timeout_policy { ana::NoTimeouts, ana::FixedTime, ana::TimePerKilobyte } |
Timeout policies for send operations. More... | |
Functions | |
| size_t | ana::time::milliseconds (size_t ms) |
| Create a time lapse from a given amount of milliseconds. | |
| size_t | ana::time::seconds (double s) |
| Create a time lapse from a given amount of seconds. | |
| size_t | ana::time::minutes (double m) |
| Create a time lapse from a given amount of minutes. | |
| size_t | ana::time::hours (double h) |
| Create a time lapse from a given amount of hours. | |
| size_t | ana::time::days (double d) |
| Create a time lapse from a given amount of days. | |
Implementation details for the ana project dealing with timers.
ana: Asynchronous Network API. Copyright (C) 2010 - 2012 Guillermo Biset.
This file is part of the ana project.
System: ana Language: C++
Author: Guillermo Biset E-Mail: billybiset AT gmail DOT com
ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ana. If not, see <http://www.gnu.org/licenses/>.
Definition in file timers.hpp.
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:47 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |