Common interface for claw::net::basic_socketbuf and claw::net::socket_server. More...
#include <basic_socket.hpp>
Public Member Functions | |
basic_socket () | |
Constructor. | |
basic_socket * | open () |
Open the socket. | |
basic_socket * | close () |
Close the socket. | |
bool | is_open () const |
Tell if the socket is open. | |
Protected Attributes | |
socket_traits::descriptor | m_descriptor |
File descriptor. | |
Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
Definition at line 47 of file basic_socket.hpp.
claw::net::basic_socket::basic_socket | ( | ) |
claw::net::basic_socket * claw::net::basic_socket::close | ( | ) |
Close the socket.
Definition at line 60 of file basic_socket.cpp.
bool claw::net::basic_socket::is_open | ( | ) | const |
Tell if the socket is open.
Definition at line 78 of file basic_socket.cpp.
claw::net::basic_socket * claw::net::basic_socket::open | ( | ) |
Open the socket.
Definition at line 44 of file basic_socket.cpp.
|
protected |
File descriptor.
Definition at line 59 of file basic_socket.hpp.