Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
libcargo-ipc tools

Generic types used in libcargo-ipc. More...

Modules

 IPCException
 Base class for all exceptions in libcargo-ipc.
 

Classes

class  cargo::ipc::epoll::EventPoll
 This class waits on registered file descriptor for events. More...
 
class  cargo::ipc::MethodResult
 Class used to obtain method call result code. More...
 
struct  cargo::ipc::SignalHandler< ReceivedDataType >
 Generic type used as a callback function for handling signals. More...
 

Typedefs

typedef unsigned int cargo::ipc::epoll::Events
 bitmask of EPOLL* constants More...
 
typedef std::function< void(const
cargo::ipc::PeerID peerID,
const
cargo::ipc::FileDescriptor fd)> 
cargo::ipc::PeerCallback
 Generic function type used as callback for peer events. More...
 
typedef std::function< void(cargo::ipc::FileDescriptor
fd, std::shared_ptr< void >
&data)> 
cargo::ipc::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)> 
cargo::ipc::ParseCallback
 Generic function type used as callback for reading and parsing data. More...
 

Functions

MessageID cargo::ipc::getNextMessageID ()
 Generate an unique message id. More...
 
PeerID cargo::ipc::getNextPeerID ()
 Generate an unique peer id. More...
 

Detailed Description

Generic types used in libcargo-ipc.

Typedef Documentation

typedef unsigned int cargo::ipc::epoll::Events

bitmask of EPOLL* constants

typedef std::function<std::shared_ptr<void>cargo::ipc::FileDescriptor fd)> cargo::ipc::ParseCallback

Generic function type used as callback for reading and parsing data.

Parameters
fddescriptor to read the data from
typedef std::function<void(const cargo::ipc::PeerID peerID, const cargo::ipc::FileDescriptor fd)> cargo::ipc::PeerCallback

Generic function type used as callback for peer events.

Parameters
peerIDpeer identifier that event relates to
fdevent origin
typedef std::function<void(cargo::ipc::FileDescriptor fd, std::shared_ptr<void>& data)> cargo::ipc::SerializeCallback

Generic function type used as callback for serializing and saving serialized data to the descriptor.

Parameters
fddescriptor to save the serialized data to
datadata to serialize

Function Documentation

MessageID cargo::ipc::getNextMessageID ( )

Generate an unique message id.

Returns
new, unique MessageID
PeerID cargo::ipc::getNextPeerID ( )

Generate an unique peer id.

Returns
new, unique PeerID