Asio Extensions
Additional functionality built on top of (Boost.)Asio
File handles

Modules

 asioext::duplicate()
 Duplicate a native file handle.
 
 asioext::open()
 Open a handle to a file.
 
 asioext::open_flags
 Specifies semantics for opening files.
 

Classes

class  asioext::basic_file< FileService >
 Basic interface for (a)synchronous file I/O. More...
 
class  asioext::file_handle
 A thin and lightweight wrapper around a native file handle. More...
 
class  asioext::thread_pool_file_service
 A FileService utilizing a thread-pool for async operations. More...
 
class  asioext::unique_file_handle
 RAII wrapper around file_handle. More...
 

Typedefs

typedef basic_file< thread_pool_file_serviceasioext::file
 

Enumerations

enum  asioext::seek_origin { asioext::seek_origin::from_begin, asioext::seek_origin::from_current, asioext::seek_origin::from_end }
 Specifies the various position offset origins. More...
 

Detailed Description

Typedef Documentation

◆ file

Typedef for a basic_file using the default FileService (thread_pool_file_service)

Enumeration Type Documentation

◆ seek_origin

enum asioext::seek_origin
strong

Specifies the various position offset origins.

This enum describes the various origins, relative to which a position offset might be interpreted.

Enumerator
from_begin 

Interpret the offset as relative to the file's beginning (i.e. absolute)

from_current 

Interpret the offset as relative to the current offset.

from_end 

Interpret the offset as relative to the file's size.