YAMI4 C++ Library 2.0.0
Messaging Solution for Distributed Systems
Loading...
Searching...
No Matches
event_callback.h
1// Copyright Maciej Sobczak 2008-2022.
2// This file is part of YAMI4.
3// See the package-level LICENSE.txt file.
4
5#ifndef YAMICPP_EVENT_CALLBACK_H_INCLUDED
6#define YAMICPP_EVENT_CALLBACK_H_INCLUDED
7
8#include <yami4-core/dll.h>
9#include <cstddef>
10
11namespace yami
12{
13
26{
27public:
28 virtual ~event_callback() {}
29
30 virtual void agent_created() {}
31 virtual void agent_closed() {}
32 virtual void listener_added(const char * /* target */) {}
33 virtual void listener_removed(const char * /* target */) {}
34 virtual void incoming_connection_open(const char * /* target */) {}
35 virtual void outgoing_connection_open(const char * /* target */) {}
36 virtual void connection_closed(const char * /* target */) {}
37 virtual void connection_error(const char * /* target */) {}
38 virtual void object_registered(const char * /* name */) {}
39 virtual void object_unregistered(const char * /* name */) {}
40 virtual void message_sent(
41 const char * /* target */, std::size_t /* size */) {}
42 virtual void message_received(
43 const char * /* target */, std::size_t /* size */) {}
44};
45
46} // namespace yami
47
48#endif // YAMICPP_EVENT_CALLBACK_H_INCLUDED
Event notification callback interface.
Definition: event_callback.h:26
Namespace devoted to everything related to YAMI4.
Definition: agent.h:21
@ connection_closed
Connection was closed.
Definition: connection_event.h:16