Skip to content
Snippets Groups Projects

0.0.1

Merged Andrei Kazarov requested to merge 0.0.1 into master
4 files
+ 11
7
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
1
@@ -2,7 +2,7 @@
#### Introduction to API
This single-file library provides an interface for sending commands to a DAQ2SoC server application (e.g. nginx server loading a module with user server-side code), in either syncronous or asyncrounous manner. There are two classes exposed to user: `Sender` and `AsyncHandler`. `Sender` allows you to create a connection to the SoC server side and to send commands to it, including some payload. Commands can be send in syncronous manner, blocking until the result is received from the server (which may take time, depending on the processing there) or in asyncronous way, returning immediately an instance of `AsyncHandler` (featuring `C++-11 future<>`) which can be stored and used at any moment to check if the result is retreived and to get it.
Internally, user calls are converted into `HTTP` calls to the nginx server, using `Boost/beast` `HTTP` implementation.
Internally, user calls are converted into `HTTP` calls to the nginx server, using `Boost/beast` `HTTP` one-header library.
#### Compiling sources and an example
To compile the daq2soc client code and the example, you need to install boost-1.69 development package. For CC7 systems, this is available in standard epel repo and can be installed like
@@ -22,3 +22,6 @@ make -j2 all
./run localhost reset_counter
```
##### Doxygen
[AsyncHandler](https://atlas-tdaq-sw.web.cern.ch/atlas-tdaq-sw/daq2soc/doxygen/0.0.1/classtdaq_1_1soc_1_1_async_handler.html)
[Sender](https://atlas-tdaq-sw.web.cern.ch/atlas-tdaq-sw/daq2soc/doxygen/0.0.1/classtdaq_1_1soc_1_1_sender.html)
Loading