|
Qpid Proton C++
0.12.0
|
Listening socket. More...
#include <io.hpp>
Public Member Functions | |
| listener (const std::string &host, const std::string &port) | |
| Listen on host/port. More... | |
| descriptor | accept (std::string &host, std::string &port) |
| Accept a connection. More... | |
| descriptor | accept () |
| Accept a connection, does not provide address info. | |
| descriptor | socket () const |
| Convert to descriptor. | |
Listening socket.
| listener | ( | const std::string & | host, |
| const std::string & | port | ||
| ) |
Listen on host/port.
Empty host means listen on all interfaces. port can be a service name or number
| descriptor accept | ( | std::string & | host, |
| std::string & | port | ||
| ) |
Accept a connection.
Return the descriptor, set host, port to the remote address. port can be a service name or number.
1.8.5