RESTinio
|
Wrapper class for working with native file handler. More...
#include <sendfile.hpp>
Public Member Functions | |
file_descriptor_holder_t (file_descriptor_t fd) noexcept | |
Init constructor. More... | |
file_descriptor_holder_t (file_descriptor_holder_t &&fdh) noexcept | |
file_descriptor_holder_t & | operator= (file_descriptor_holder_t &&fdh) noexcept |
~file_descriptor_holder_t () noexcept | |
bool | is_valid () const noexcept |
Check if file descriptor is valid. More... | |
file_descriptor_t | fd () const noexcept |
void | release () noexcept |
Copy semantics. | |
Not allowed. | |
file_descriptor_holder_t (const file_descriptor_holder_t &)=delete | |
file_descriptor_holder_t & | operator= (const file_descriptor_holder_t &)=delete |
Private Attributes | |
file_descriptor_t | m_file_descriptor |
Target file descriptor. More... | |
Friends | |
void | swap (file_descriptor_holder_t &left, file_descriptor_holder_t &right) noexcept |
Swap two descriptors. More... | |
Wrapper class for working with native file handler.
Definition at line 108 of file sendfile.hpp.
|
inlinenoexcept |
Init constructor.
Definition at line 120 of file sendfile.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 132 of file sendfile.hpp.
|
inlinenoexcept |
Definition at line 148 of file sendfile.hpp.
|
inlinenoexcept |
Definition at line 161 of file sendfile.hpp.
|
inlinenoexcept |
Check if file descriptor is valid.
Definition at line 155 of file sendfile.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 138 of file sendfile.hpp.
|
inlinenoexcept |
Definition at line 167 of file sendfile.hpp.
|
friend |
Swap two descriptors.
Definition at line 113 of file sendfile.hpp.
|
private |
Target file descriptor.
Definition at line 174 of file sendfile.hpp.