25 #ifndef CARGO_IPC_TYPES_HPP
26 #define CARGO_IPC_TYPES_HPP
54 typedef std::function<void(const cargo::ipc::PeerID peerID, const cargo::ipc::FileDescriptor fd)>
PeerCallback;
96 template<
typename ReceivedDataType>
98 typedef std::function<bool(
PeerID peerID,
99 std::shared_ptr<ReceivedDataType>&
data)>
type;
105 #endif // CARGO_IPC_TYPES_HPP
std::string PeerID
Definition: types.hpp:45
MessageID getNextMessageID()
Generate an unique message id.
Definition: types.cpp:46
std::function< std::shared_ptr< void >cargo::ipc::FileDescriptor fd)> ParseCallback
Generic function type used as callback for reading and parsing data.
Definition: types.hpp:72
std::function< void(const cargo::ipc::PeerID peerID, const cargo::ipc::FileDescriptor fd)> PeerCallback
Generic function type used as callback for peer events.
Definition: types.hpp:54
PeerID getNextPeerID()
Generate an unique peer id.
Definition: types.cpp:55
std::function< bool(PeerID peerID, std::shared_ptr< ReceivedDataType > &data)> type
Definition: types.hpp:99
char data[368]
Definition: initctl.cpp:41
unsigned int MethodID
Definition: types.hpp:43
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...
Definition: types.hpp:64
int FileDescriptor
Definition: types.hpp:42
Generic type used as a callback function for handling signals.
Definition: types.hpp:97
std::string MessageID
Definition: types.hpp:44