DBus::priv Namespace Reference

Private namespace for internal dbux-cxx implementation. More...

Classes

class  SASL
 Implements the authentication routines for connection to the bus. More...
 
class  SendmsgTransport
 The Sendmsg handles reading and writing over a Unix FD that supports sendmsg(). More...
 
class  SignatureNode
 Represents a single entry in our graph of the signature. More...
 
class  dbus_signature
 
class  dbus_signature<>
 
class  dbus_signature< arg1, argn... >
 
class  SimpleTransport
 The SimpleTransport handles reading and writing over a Unix FD. More...
 
class  Transport
 
class  method_signature
 
class  method_signature<>
 
class  method_signature< arg1, argn... >
 
class  multireturn_signature
 
class  multireturn_signature<>
 
class  multireturn_signature< arg1, argn... >
 
struct  dbus_function_traits
 
struct  dbus_function_traits< std::function< void(Args...)> >
 
struct  dbus_function_traits< std::function< T_ret(Args...)> >
 
struct  dbus_function_traits< std::function< DBus::MultipleReturn< T_ret... >(Args...)> >
 
class  VariantAppendIterator
 Used to append a single, complete value to a Variant. More...
 
class  VariantIterator
 

Functions

std::tuple< bool, int, std::vector< int >, std::chrono::milliseconds > wait_for_fd_activity (std::vector< int > fds, int timeout_ms)
 Wait for activity on any of the given FDs. More...
 

Detailed Description

Private namespace for internal dbux-cxx implementation.

This implementation may not be stable and may change between releases, so use at your own risk!

Function Documentation

◆ wait_for_fd_activity()

std::tuple< bool, int, std::vector< int >, std::chrono::milliseconds > DBus::priv::wait_for_fd_activity ( std::vector< int >  fds,
int  timeout_ms 
)

Wait for activity on any of the given FDs.

If the system call is interrupted, it will be restarted automatically.

Parameters
fdsThe FDs to monitor
timeoutThe timeout, in milliseconds to wait. -1 means infite.
Returns
Tuple containing:
  • bool true if we timedout, false otherwise
  • int # of FDs to read
  • vector of FDs to read
  • milliseconds # of MS we waited

Referenced by DBus::StandaloneDispatcher::dispatch_thread_main(), and DBus::Connection::send_with_reply_blocking().