listener Class Reference

A listener for incoming connections. More...

#include <listener.hpp>

List of all members.

Public Member Functions

 listener ()
 listener (const listener &)
 Copy a listener.
listeneroperator= (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**
class containercontainer () const
 **Unsettedled API**

Friends

class container

Detailed Description

A listener for incoming connections.

Examples:

broker.cpp, direct_recv.cpp, direct_send.cpp, and server_direct.cpp.


Constructor & Destructor Documentation

listener (  ) 

Create an empty listener.


Member Function Documentation

void stop (  ) 

Stop listening on the address provided to the call to container::listen that returned this listener.

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.

Exceptions:
proton::error if the listener does not have a port
Examples:
broker.cpp, direct_recv.cpp, direct_send.cpp, and server_direct.cpp.
class container& container (  )  const

**Unsettedled API**

Get the container.

Exceptions:
proton::error if this listener is not managed by a container.

The documentation for this class was generated from the following file:

Generated on 1 Jun 2020 for Qpid Proton C++ by  doxygen 1.6.1