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. | |
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. | |
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. |
Friends | |
void | swap (file_descriptor_holder_t &left, file_descriptor_holder_t &right) noexcept |
Swap two descriptors. |
Wrapper class for working with native file handler.
Definition at line 112 of file sendfile.hpp.
|
inlinenoexcept |
Init constructor.
Definition at line 124 of file sendfile.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 136 of file sendfile.hpp.
|
inlinenoexcept |
Definition at line 150 of file sendfile.hpp.
|
inlinenodiscardnoexcept |
Definition at line 165 of file sendfile.hpp.
|
inlinenodiscardnoexcept |
Check if file descriptor is valid.
Definition at line 158 of file sendfile.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 142 of file sendfile.hpp.
|
inlinenoexcept |
Definition at line 171 of file sendfile.hpp.
|
friend |
Swap two descriptors.
Definition at line 117 of file sendfile.hpp.
|
private |
Target file descriptor.
Definition at line 178 of file sendfile.hpp.