#include <Descriptor.h>
Definition at line 51 of file Descriptor.h.
◆ Descriptor() [1/4]
| core::Descriptor::Descriptor |
( |
| ) |
|
|
delete |
◆ Descriptor() [2/4]
| core::Descriptor::Descriptor |
( |
const Descriptor & | d | ) |
|
|
delete |
◆ Descriptor() [3/4]
| core::Descriptor::Descriptor |
( |
int | fd | ) |
|
|
explicitprotected |
◆ Descriptor() [4/4]
| core::Descriptor::Descriptor |
( |
Descriptor && | descriptor | ) |
|
|
protectednoexcept |
Definition at line 58 of file Descriptor.cpp.
58 {
59 fd = std::exchange(descriptor.fd, -1);
60 }
References fd.
◆ ~Descriptor()
| core::Descriptor::~Descriptor |
( |
| ) |
|
|
protectedvirtual |
◆ getFd()
| int core::Descriptor::getFd |
( |
| ) |
const |
Definition at line 81 of file Descriptor.cpp.
References fd.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::bind(), net::phy::PhysicalSocket< SocketAddressT >::getPeerName(), net::phy::PhysicalSocket< SocketAddressT >::getSockName(), net::phy::PhysicalSocket< SocketAddressT >::getSockopt(), core::file::FileReader::isOpen(), net::phy::PhysicalSocket< SocketAddressT >::isValid(), core::file::FileReader::onEvent(), net::un::dgram::Socket::recvFd(), net::un::dgram::Socket::sendFd(), net::phy::PhysicalSocket< SocketAddressT >::setSockopt(), and net::phy::stream::PhysicalSocket< SocketAddressT >::shutdown().
◆ operator=() [1/3]
◆ operator=() [2/3]
Definition at line 62 of file Descriptor.cpp.
62 {
63 fd = std::exchange(descriptor.fd, -1);
64
65 return *this;
66 }
References fd.
◆ operator=() [3/3]
| Descriptor & core::Descriptor::operator= |
( |
int | fd | ) |
|
Definition at line 68 of file Descriptor.cpp.
68 {
70
71 return *this;
72 }
References fd.
◆ fd
| int core::Descriptor::fd = -1 |
|
private |
The documentation for this class was generated from the following files: