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

Go to the source code of this file.


struct  NET_SendfileOp


 Sendfile system call async support. More...


UT_IpAddress NETconvertIPAddressType (hboost::asio::ip::address &from)
template<typename CompletionToken >
auto NETasyncSendfile (NET_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


Sendfile system call async support.

Definition at line 38 of file NET_BoostAsioExt.h.

Function Documentation

template<typename CompletionToken >
auto NETasyncSendfile ( NET_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 NET_BoostAsioExt.h.

UT_IpAddress NETconvertIPAddressType ( hboost::asio::ip::address from)

Definition at line 27 of file NET_BoostAsioExt.h.