A listener for incoming connections. More...
#include <listener.hpp>
Public Member Functions | |
listener () | |
Create an empty listener. | |
listener (const listener &) | |
Copy a listener. | |
listener & | operator= (const listener &) |
Copy a listener. | |
void | stop () |
Stop listening on the address provided to the call to container::listen that returned this listener. | |
int | port () |
Unsettedled API More... | |
class container & | container () const |
Unsettedled API More... | |
Friends | |
class | container |
A listener for incoming connections.
int port | ( | ) |
Unsettedled API
Return the port used by the listener. If port 0 was passed to container::listen, this will be a dynamically allocated port.
proton::error | if the listener does not have a port |
Unsettedled API
Get the container.
proton::error | if this listener is not managed by a container. |