Belle II Software
release-08-02-06
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
TCPServerSocket.h
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
#ifndef _B2ARICH_TCPServerSocket_hh_
9
#define _B2ARICH_TCPServerSocket_hh_
10
11
#include "daq/slc/system/TCPSocket.h"
12
#include "daq/slc/system/FileDescriptor.h"
13
14
namespace
Belle2
{
20
class
TCPServerSocket
:
public
FileDescriptor
{
21
22
public
:
23
TCPServerSocket
()
24
: m_ip(
""
), m_port(0) {}
25
TCPServerSocket
(
const
std::string& ip,
unsigned
short
port)
26
: m_ip(ip), m_port(port) {}
27
virtual
~
TCPServerSocket
() {}
28
29
public
:
30
void
setIP(
const
std::string& ip) { m_ip = ip; }
31
void
setPort(
unsigned
short
port) { m_port = port; }
32
const
std::string& getIP()
const
{
return
m_ip; }
33
unsigned
short
getPort()
const
{
return
m_port; }
34
int
open(
int
nqueue = 5);
35
int
open(
const
std::string& ip,
unsigned
short
port,
int
nqueue = 5);
36
TCPSocket
accept();
37
38
private
:
39
std::string m_ip;
40
unsigned
short
m_port;
41
42
};
43
45
}
46
47
#endif
48
Belle2::FileDescriptor
Definition:
FileDescriptor.h:17
Belle2::TCPServerSocket
Definition:
TCPServerSocket.h:20
Belle2::TCPSocket
Definition:
TCPSocket.h:21
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
daq
slc
system
include
TCPServerSocket.h
Generated on Tue Jan 28 2025 01:53:39 for Belle II Software by
1.9.1