HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BoostAsioExt.h File Reference
#include "UT_API.h"
#include "UT_IpAddress.h"
#include <vector>
#include <limits>
+ Include dependency graph for UT_BoostAsioExt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UT_SendfileOp
 

Macros

#define UT_SUPPORT_SENDFILE
 Sendfile system call async support. More...
 

Functions

UT_IpAddress UTconvertIPAddressType (hboost::asio::ip::address &from)
 
template<typename CompletionToken >
auto UTasyncSendfile (ASIO_TCPSocket &socket, int fd, off_t offset, std::size_t size, CompletionToken &&token) -> typename hboost::asio::async_result< typename std::decay< CompletionToken >::type, void(hboost::system::error_code, std::size_t)>::return_type
 

Macro Definition Documentation

#define UT_SUPPORT_SENDFILE

Sendfile system call async support.

Definition at line 38 of file UT_BoostAsioExt.h.

Function Documentation

template<typename CompletionToken >
auto UTasyncSendfile ( ASIO_TCPSocket socket,
int  fd,
off_t  offset,
std::size_t  size,
CompletionToken &&  token 
) -> typename hboost::asio::async_result< typename std::decay<CompletionToken>::type, void(hboost::system::error_code, std::size_t)>::return_type

Async composed function to use the system sendfile call. The completion token is only called if the operation is completely finished or an error of some kind has occurred.

Definition at line 147 of file UT_BoostAsioExt.h.

UT_IpAddress UTconvertIPAddressType ( hboost::asio::ip::address &  from)
inline

Definition at line 27 of file UT_BoostAsioExt.h.