The Battle for Wesnoth  1.15.2+dev
Classes | Macros | Functions
send_receive_wml_helpers.ipp File Reference
#include "server/server_base.hpp"
#include "server/simple_wml.hpp"
#include "filesystem.hpp"
#include "serialization/unicode_cast.hpp"
#include <memory>
#include <stdexcept>
Include dependency graph for send_receive_wml_helpers.ipp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  handle_doc< Handler, ErrorHandler >
 
union  handle_doc< Handler, ErrorHandler >::DataSize
 
struct  handle_receive_doc< Handler, ErrorHandler >
 

Macros

#define SEND_RECEIVE_WML_HELPERS_HPP
 

Functions

template<typename Handler , typename ErrorHandler >
void async_send_doc (socket_ptr socket, simple_wml::document &doc, Handler handler, ErrorHandler error_handler)
 
static void null_handler (socket_ptr)
 
template<typename Handler , typename ErrorHandler >
void async_send_file (socket_ptr, const std::string &, Handler, ErrorHandler)
 
template<typename Handler >
void async_send_doc (socket_ptr socket, simple_wml::document &doc, Handler handler)
 
void async_send_doc (socket_ptr socket, simple_wml::document &doc)
 
template<typename Handler , typename ErrorHandler >
void async_receive_doc (socket_ptr socket, Handler handler, ErrorHandler error_handler)
 
template<typename Handler >
void async_receive_doc (socket_ptr socket, Handler handler)
 

Macro Definition Documentation

◆ SEND_RECEIVE_WML_HELPERS_HPP

#define SEND_RECEIVE_WML_HELPERS_HPP

Definition at line 16 of file send_receive_wml_helpers.ipp.

Function Documentation

◆ async_receive_doc() [1/2]

template<typename Handler , typename ErrorHandler >
void async_receive_doc ( socket_ptr  socket,
Handler  handler,
ErrorHandler  error_handler 
)
inline

◆ async_receive_doc() [2/2]

template<typename Handler >
void async_receive_doc ( socket_ptr  socket,
Handler  handler 
)
inline

Definition at line 350 of file send_receive_wml_helpers.ipp.

References async_receive_doc(), and null_handler().

◆ async_send_doc() [1/3]

template<typename Handler , typename ErrorHandler >
void async_send_doc ( socket_ptr  socket,
simple_wml::document doc,
Handler  handler,
ErrorHandler  error_handler 
)

◆ async_send_doc() [2/3]

template<typename Handler >
void async_send_doc ( socket_ptr  socket,
simple_wml::document doc,
Handler  handler 
)
inline

Definition at line 279 of file send_receive_wml_helpers.ipp.

References async_send_doc(), and null_handler().

◆ async_send_doc() [3/3]

void async_send_doc ( socket_ptr  socket,
simple_wml::document doc 
)
inline

Definition at line 284 of file send_receive_wml_helpers.ipp.

References async_send_doc(), and null_handler().

◆ async_send_file()

template<typename Handler , typename ErrorHandler >
void async_send_file ( socket_ptr  ,
const std::string &  ,
Handler  ,
ErrorHandler   
)

◆ null_handler()

static void null_handler ( socket_ptr  )
static