mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-15 08:47:14 +02:00
fix ci and add formatting (#48)
* add dependency * dont run blocking zmq example and add formatting * format files
This commit is contained in:
@ -1,18 +1,15 @@
|
||||
#include <string>
|
||||
#include <fmt/core.h>
|
||||
#include "aare/ZmqSocket.hpp"
|
||||
#include <fmt/core.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
int main(){
|
||||
int main() {
|
||||
std::string endpoint = "tcp://localhost:5555";
|
||||
aare::ZmqSocket socket(endpoint);
|
||||
socket.connect();
|
||||
char* data = new char[1024*1024*10];
|
||||
char *data = new char[1024 * 1024 * 10];
|
||||
aare::zmqHeader header;
|
||||
while(true){
|
||||
int rc = socket.receive(header, reinterpret_cast<std::byte*>(data));
|
||||
|
||||
while (true) {
|
||||
int rc = socket.receive(header, reinterpret_cast<std::byte *>(data));
|
||||
}
|
||||
delete[] data;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user