Qpid Proton C++  0.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Typedefs | Functions
proton::io Namespace Reference

IO using sockets, file descriptors, or handles. More...

Classes

struct  guard
 Use to call io::initialize and io::finalize around a scope. More...
 
class  listener
 Listening socket. More...
 
class  socket_engine
 A connection_engine for socket-based IO. More...
 

Typedefs

typedef int64_t descriptor
 An IO resource.
 

Functions

std::string error_str ()
 Return a string describing the most recent IO error.
 
descriptor connect (const proton::url &)
 Open a TCP connection to the host:port (port can be a service name or number) from a proton::url.
 
Setup and teardown

Call proton::io::initialize before using any functions in the proton::io namespace.

Call proton::io::finalize when you are done.

You can call initialize/finalize more than once as long as they are in matching pairs. Use proton::io::guard to call initialize/finalize around a scope.

Note that on POSIX systems these are no-ops, but they are required for Windows.

void initialize ()
 Initialize the proton::io subsystem.
 
void finalize ()
 Finalize the proton::io subsystem.
 

Detailed Description

IO using sockets, file descriptors, or handles.

Note that you can use proton::connection_engine to communicate using AMQP over your own IO implementation or to integrate an existing IO framework of your choice.