| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #ifndef __DAEMON_EMPTY_BACKEND_H__ | ||
| 8 | #define __DAEMON_EMPTY_BACKEND_H__ | ||
| 9 | |||
| 10 | #include "PString.h" | ||
| 11 | #include "PClockNs.h" | ||
| 12 | #include "PGenericSocketManager.h" | ||
| 13 | #include "phoenix_clock.h" | ||
| 14 | |||
| 15 | ///@brief Simple, default backend of the Daemon to manage Socket and Clock | ||
| 16 | struct DaemonEmptyBackend{ | ||
| 17 | ///Define the socket backend | ||
| 18 | typedef PEmptySocketGenerator SocketBackend; | ||
| 19 | ///Define the socket mock | ||
| 20 | typedef PMockSocketGenerator SocketMock; | ||
| 21 | |||
| 22 | ///Socket manager with no official backend | ||
| 23 | PGenericSocketManager<PString, SocketBackend, SocketMock> socketManager; | ||
| 24 | ///Clock backend | ||
| 25 | PGenericClock<PClockNs, PClockMock> clock; | ||
| 26 | ///Extra parameters used by the current Daemon to create its socket | ||
| 27 | SocketBackend::Param extraServerParam; | ||
| 28 | ///Extra parameters used by the current Daemon to create sockets to communicate with other Daemon | ||
| 29 | SocketBackend::Param extraClientParam; | ||
| 30 | ///Extra parameters used by the current Daemon to create its socket for mock | ||
| 31 | SocketMock::Param extraMockServerParam; | ||
| 32 | ///Extra parameters used by the current Daemon to create sockets to communicate with other Daemon for mock | ||
| 33 | SocketMock::Param extraMockClientParam; | ||
| 34 | }; | ||
| 35 | |||
| 36 | |||
| 37 | #endif | ||
| 38 | |||
| 39 |