D++ (DPP)
C++ Discord API Bot Library
|
Allocates a dpp::socket, closing it on destruction. More...
#include <socket.h>
Public Member Functions | |
raii_socket () | |
Construct a socket. Calls socket() and returns a new file descriptor. More... | |
raii_socket (raii_socket &)=delete | |
Non-copyable. More... | |
raii_socket (raii_socket &&)=delete | |
Non-movable. More... | |
raii_socket | operator= (raii_socket &)=delete |
Non-copyable. More... | |
raii_socket | operator= (raii_socket &&)=delete |
Non-movable. More... | |
~raii_socket () | |
Destructor Frees the socket by closing it. More... | |
Public Attributes | |
socket | fd |
File descriptor. More... | |
Allocates a dpp::socket, closing it on destruction.
dpp::raii_socket::raii_socket | ( | ) |
Construct a socket. Calls socket() and returns a new file descriptor.
|
delete |
Non-copyable.
|
delete |
Non-movable.
dpp::raii_socket::~raii_socket | ( | ) |
Destructor Frees the socket by closing it.
|
delete |
Non-movable.
|
delete |
Non-copyable.
socket dpp::raii_socket::fd |
File descriptor.