| 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 "PGenericSocketManager.h" | ||
| 12 | #include "phoenix_clock.h" | ||
| 13 | |||
| 14 | ///@brief Simple, default backend of the Daemon to manage Socket and Clock | ||
| 15 | struct DaemonEmptyBackend{ | ||
| 16 | ///Define the socket backend | ||
| 17 | typedef PEmptyBackend SocketBackend; | ||
| 18 | ///Define the socket mock | ||
| 19 | typedef PMockBackend SocketMock; | ||
| 20 | |||
| 21 | ///Socket manager with no official backend | ||
| 22 | PGenericSocketManager<PString, SocketBackend, SocketMock> socketManager; | ||
| 23 | ///Clock backend | ||
| 24 | PGenericClock<PClockNsBackend, PClockMock> clock; | ||
| 25 | ///Extra parameters used by the current Daemon to create its socket | ||
| 26 | SocketBackend::Param extraServerParam; | ||
| 27 | ///Extra parameters used by the current Daemon to create sockets to communicate with other Daemon | ||
| 28 | SocketBackend::Param extraClientParam; | ||
| 29 | ///Extra parameters used by the current Daemon to create its socket for mock | ||
| 30 | SocketMock::Param extraMockServerParam; | ||
| 31 | ///Extra parameters used by the current Daemon to create sockets to communicate with other Daemon for mock | ||
| 32 | SocketMock::Param extraMockClientParam; | ||
| 33 | }; | ||
| 34 | |||
| 35 | |||
| 36 | #endif | ||
| 37 | |||
| 38 |