#include <utilmm/system/socket.hh>
|
| std::vector< uint8_t > | to_sockaddr (std::string const &to) const |
| |
◆ Domain
◆ Type
| Enumerator |
|---|
| Stream | |
| Datagram | |
◆ Wait
| Enumerator |
|---|
| WaitRead | |
| WaitWrite | |
| WaitException | |
◆ base_socket() [1/2]
| utilmm::base_socket::base_socket |
( |
int |
fd | ) |
|
◆ base_socket() [2/2]
| utilmm::base_socket::base_socket |
( |
Domain |
domain, |
|
|
Type |
type |
|
) |
| |
◆ ~base_socket()
| utilmm::base_socket::~base_socket |
( |
| ) |
|
◆ fd()
| int utilmm::base_socket::fd |
( |
| ) |
const |
Get the socket file descriptor
◆ flush()
| void utilmm::base_socket::flush |
( |
| ) |
const |
Flush all buffers related to this socket
◆ to_sockaddr()
| std::vector<uint8_t> utilmm::base_socket::to_sockaddr |
( |
std::string const & |
to | ) |
const |
|
protected |
◆ try_wait()
| bool utilmm::base_socket::try_wait |
( |
int |
what | ) |
const |
Non-blocking version of wait
- Parameters
-
| what | an OR-ed field of values in the Wait enum |
- Returns
- true if the event was present and false otherwise
◆ wait()
| void utilmm::base_socket::wait |
( |
int |
what | ) |
const |
Blocks until one of the specified events is detected on this socket
- Parameters
-
| what | an OR-ed field of values in the Wait enum |
The documentation for this class was generated from the following file: