Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cargo::ipc Namespace Reference

Namespaces

 epoll
 

Classes

class  Client
 This class wraps communication via UX sockets for client applications. More...
 
struct  IPCException
 
struct  IPCParsingException
 Exception to indicate error while reading/parsing data from the socket. More...
 
struct  IPCSerializationException
 Exception to indicate error while writing/serializing data to the socket. More...
 
struct  IPCPeerDisconnectedException
 Exception to indicate that requested peer is not available, i.e. More...
 
struct  IPCNaughtyPeerException
 Exception to indicate that peer performed a forbidden action. More...
 
struct  IPCRemovedPeerException
 Exception to indicate error while removing peer. More...
 
struct  IPCClosingException
 Exception to indicate error while closing IPC channel. More...
 
struct  IPCTimeoutException
 Exception to indicate timeout event error. More...
 
struct  IPCSocketException
 Exception to indicate socket error. More...
 
struct  IPCUserException
 Exception to indicate user error. More...
 
class  Acceptor
 Accepts new connections and passes the new socket to a callback. More...
 
class  AddPeerRequest
 
class  EventQueue
 This class implements a simple FIFO queue of events. More...
 
class  FinishRequest
 
class  MethodRequest
 
class  Processor
 This class wraps communication via UX sockets. More...
 
class  RemoveMethodRequest
 
class  RemovePeerRequest
 
class  RequestQueue
 Class for managing a queue of Requests carrying any data. More...
 
class  ResultBuilder
 
class  SendResultRequest
 
class  SignalRequest
 
class  Socket
 This class wraps all operations possible to do with a socket. More...
 
struct  IPCGSource
 Class for connecting to the glib's loop. More...
 
class  MethodResult
 Class used to obtain method call result code. More...
 
struct  MethodHandler
 
class  Result
 
struct  ResultHandler
 
class  Service
 This class wraps communication via UX sockets. More...
 
struct  SignalHandler
 Generic type used as a callback function for handling signals. More...
 
class  UniqueID
 
class  hash
 
class  hash< cargo::ipc::UniqueID >
 

Typedefs

typedef std::function< void(ResultBuilder &)> ResultBuilderHandler
 
typedef int FileDescriptor
 
typedef unsigned int MethodID
 
typedef std::string MessageID
 
typedef std::string PeerID
 
typedef std::function< void(const
cargo::ipc::PeerID peerID,
const
cargo::ipc::FileDescriptor fd)> 
PeerCallback
 Generic function type used as callback for peer events. More...
 
typedef std::function< void(cargo::ipc::FileDescriptor
fd, std::shared_ptr< void >
&data)> 
SerializeCallback
 Generic function type used as callback for serializing and saving serialized data to the descriptor. More...
 
typedef std::function
< std::shared_ptr< void >
cargo::ipc::FileDescriptor fd)> 
ParseCallback
 Generic function type used as callback for reading and parsing data. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Processor::Event &event)
 
MessageID getNextMessageID ()
 Generate an unique message id. More...
 
PeerID getNextPeerID ()
 Generate an unique peer id. More...
 
std::ostream & operator<< (std::ostream &str, const UniqueID &id)
 

Variables

const unsigned int DEFAULT_MAX_NUMBER_OF_PEERS = 500
 

Typedef Documentation

typedef std::string cargo::ipc::MessageID
typedef unsigned int cargo::ipc::MethodID
typedef std::string cargo::ipc::PeerID
typedef std::function<void(ResultBuilder&)> cargo::ipc::ResultBuilderHandler

Function Documentation

std::ostream& cargo::ipc::operator<< ( std::ostream &  str,
const UniqueID &  id 
)

Used in ut-uid.cpp tests.

std::ostream& cargo::ipc::operator<< ( std::ostream &  os,
const Processor::Event &  event 
)

Variable Documentation

const unsigned int cargo::ipc::DEFAULT_MAX_NUMBER_OF_PEERS = 500