Qpid Proton C++  0.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
listener Class Reference

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.
 

Detailed Description

Listening socket.

Examples:
engine/broker.cpp, engine/direct_recv.cpp, and engine/direct_send.cpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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.


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