ATLAS Offline Software
graphics
VP1
VP1Gui
VP1Gui
VP1TcpServer.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// //
7
// Header file for class VP1TcpServer //
8
// //
9
// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10
// //
11
// Initial version: April 2007 //
12
// //
14
15
#ifndef VP1TCPSERVER_H
16
#define VP1TCPSERVER_H
17
18
#include <QObject>
19
#include <QAbstractSocket>
20
#include "
VP1Base/VP1ExternalRequest.h
"
21
22
class
VP1TcpServer
:
public
QObject {
23
24
Q_OBJECT
25
26
public
:
27
31
32
VP1TcpServer
();
33
virtual
~VP1TcpServer
();
34
35
bool
listen
(QString&
err
,
const
quint16&
port
= 4747);
//Returns false (and fills the err string) if not successful.
36
quint16
port
()
const
;
37
bool
isListening
();
38
public
Q_SLOTS:
39
void
close
();
40
41
signals
:
42
void
receivedExternalRequest
(
VP1ExternalRequest
);
43
void
listenStateChanged
(
bool
);
//Might be emitted up to 2 seconds after the state really changed
44
48
49
private
:
50
class
Imp
;
51
Imp
*
m_d
;
52
private
Q_SLOTS:
53
void
acceptConnection
();
54
void
readData
();
55
void
handleError
(QAbstractSocket::SocketError);
56
void
socketDestroyed
(QObject*);
57
void
listenStateMightHaveChanged
();
58
};
59
60
#endif
VP1TcpServer
Definition:
VP1TcpServer.h:22
VP1TcpServer::listen
bool listen(QString &err, const quint16 &port=4747)
Definition:
VP1TcpServer.cxx:57
VP1TcpServer::readData
void readData()
Definition:
VP1TcpServer.cxx:143
VP1TcpServer::~VP1TcpServer
virtual ~VP1TcpServer()
Definition:
VP1TcpServer.cxx:50
dqt_zlumi_pandas.err
err
Definition:
dqt_zlumi_pandas.py:182
VP1TcpServer::receivedExternalRequest
void receivedExternalRequest(VP1ExternalRequest)
VP1TcpServer::port
quint16 port() const
Definition:
VP1TcpServer.cxx:75
VP1ExternalRequest
Definition:
VP1ExternalRequest.h:20
VP1TcpServer::close
void close()
Definition:
VP1TcpServer.cxx:87
VP1TcpServer::m_d
Imp * m_d
Definition:
VP1TcpServer.h:50
VP1TcpServer::VP1TcpServer
VP1TcpServer()
Definition:
VP1TcpServer.cxx:35
VP1TcpServer::acceptConnection
void acceptConnection()
Definition:
VP1TcpServer.cxx:107
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition:
LegacyTopoMergerMap.py:13
VP1TcpServer::listenStateChanged
void listenStateChanged(bool)
VP1TcpServer::socketDestroyed
void socketDestroyed(QObject *)
Definition:
VP1TcpServer.cxx:196
VP1TcpServer::listenStateMightHaveChanged
void listenStateMightHaveChanged()
Definition:
VP1TcpServer.cxx:206
VP1TcpServer::handleError
void handleError(QAbstractSocket::SocketError)
Definition:
VP1TcpServer.cxx:128
VP1TcpServer::Imp
Definition:
VP1TcpServer.cxx:24
VP1TcpServer::isListening
bool isListening()
Definition:
VP1TcpServer.cxx:81
VP1ExternalRequest.h
Generated on Thu Nov 7 2024 21:31:46 for ATLAS Offline Software by
1.8.18