Belle II Software
release-08-01-10
sock2rb.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
#include <string>
9
10
#include <stdio.h>
11
#include <stdlib.h>
12
13
#include "daq/rfarm/event/Sock2Rb.h"
14
15
using namespace
Belle2
;
16
using namespace
std;
17
18
int
main
(
int
argc,
char
** argv)
19
{
20
// Retrieve RingBuffer name[1], and port number[2]
21
if
(argc < 2) {
22
printf(
"sock2rb : rbufname, port\n"
);
23
exit(-1);
24
}
25
26
Sock2Rb
sr(
string
(argv[1]), atoi(argv[2]));
27
28
for
(;;) {
29
int
stat = sr.ReceiveEvent();
30
// printf ( "sock2rb received : %d\n", stat );
31
if
(stat <= 0)
break
;
32
}
33
exit(0);
34
}
35
36
37
Belle2::Sock2Rb
Definition:
Sock2Rb.h:23
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
daq
rfarm
event
tools
sock2rb.cc
Generated on Mon Sep 23 2024 14:01:15 for Belle II Software by
1.9.1