utilmm::base_socket Class Reference
[OS-related tools]
#include <socket.hh>
List of all members.
Detailed Description
Base class for sockets
Definition at line 16 of file socket.hh.
Member Enumeration Documentation
- Enumerator:
| WaitRead |
|
| WaitWrite |
|
| WaitException |
|
Definition at line 21 of file socket.hh.
Constructor & Destructor Documentation
| utilmm::base_socket::base_socket |
( |
int |
fd |
) |
|
| utilmm::base_socket::base_socket |
( |
Domain |
domain, |
|
|
Type |
type | |
|
) |
| | |
| utilmm::base_socket::~base_socket |
( |
|
) |
|
Closes the socket
Definition at line 56 of file socket.cc.
Member Function Documentation
| int utilmm::base_socket::fd |
( |
|
) |
const |
Get the socket file descriptor
Definition at line 124 of file socket.cc.
| void utilmm::base_socket::flush |
( |
|
) |
const |
Flush all buffers related to this socket
Definition at line 160 of file socket.cc.
| vector< uint8_t > utilmm::base_socket::to_sockaddr |
( |
std::string const & |
to |
) |
const [protected] |
| int utilmm::base_socket::to_unix |
( |
Type |
t |
) |
[static, private] |
| int utilmm::base_socket::to_unix |
( |
Domain |
d |
) |
[static, private] |
| 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
Definition at line 125 of file socket.cc.
| 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 |
Definition at line 130 of file socket.cc.
| int utilmm::base_socket::wait |
( |
int |
what, |
|
|
timeval * |
tv | |
|
) |
| | const [private] |
Member Data Documentation
The documentation for this class was generated from the following files: