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... | |
Generic types used in libcargo-ipc.
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.
fd | descriptor 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.
peerID | peer identifier that event relates to |
fd | event 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.
fd | descriptor to save the serialized data to |
data | data to serialize |
MessageID cargo::ipc::getNextMessageID | ( | ) |
Generate an unique message id.
PeerID cargo::ipc::getNextPeerID | ( | ) |
Generate an unique peer id.