Classes | Namespaces | Variables

ana/api/ana.hpp File Reference

Main include file for application developers that wish to use ana. More...

#include <boost/cstdint.hpp>
#include <boost/noncopyable.hpp>
#include <boost/system/error_code.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <boost/asio/detail/socket_ops.hpp>
#include <string>
#include <cstdlib>
#include <ctime>
#include "common.hpp"
#include "timers.hpp"
#include "stats.hpp"
#include "predicates.hpp"
#include "binary_streams.hpp"
Include dependency graph for ana.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ana::listener_handler
 Class that should be implemented to handle incoming messages or disconnections. More...
struct  ana::network_stats_logger
 Interface for every component that logs network statistics. More...
class  ana::detail::ana_component
 Base class of network components. More...
class  ana::detail::listener
 Base class for any network entity that handles incoming messages. More...
struct  ana::detail::sender
 Provides send option setting to network components. More...
struct  ana::connection_handler
 Class that should be implemented to handle new connection events. More...
struct  ana::send_handler
 Class that should be implemented to handle send completion events. More...
struct  ana::server
 A network server. More...
struct  ana::server::client_proxy
 A connected client's representative in the server side. More...
struct  ana::client
 A network client. More...

Namespaces

namespace  ana
 

Namespace for project ana, the entire API is under this namespce.


namespace  ana::detail
 

Used for implementation purposes.


Functions

Miscellaneous Functions

Functions for data conversions.

void ana::network_to_host_long (ana_uint32 &value)
 Converts a 32 bit number in network byte order to a local number.
void ana::host_to_network_long (ana_uint32 &value)
 Converts a 32 bit number into a network byte order number.
void ana::network_to_host_short (ana_uint16 &value)
 Converts a 16 bit number in network byte order to a local number.
void ana::host_to_network_short (ana_uint16 &value)
 Converts a 16 bit number into a network byte order number.

Variables

static net_id ana::detail::last_net_id_ = 0
 Last issued net_id.

Detailed Description

Main include file for application developers that wish to use ana.

ana: Asynchronous Network API. Copyright (C) 2010 - 2012 Guillermo Biset.

This file is part of the ana project.

Contents: Main header file for ana providing the whole public API.

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 ana.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Tue May 22 2012 01:04:57 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs