CMS 3D CMS Logo

DTSpyHelper.h
Go to the documentation of this file.
1 #ifndef DaqSource_DTSpyHelper_h
2 #define DaqSource_DTSpyHelper_h
3 
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <netinet/tcp.h>
7 #include <netinet/in.h>
8 #include <cstdio>
9 #include <netdb.h>
10 
11 class DTtcpExcp {
13 
14 public:
16 };
17 
18 class DTCtcp {
19 protected:
20  int port;
21  int sock;
22 
23  int connected;
24  struct sockaddr_in clientAddr;
25  struct sockaddr_in myaddr;
26 
27 public:
28  DTCtcp();
29  DTCtcp(int port);
30  DTCtcp(int sock, int opt);
31  DTCtcp(DTCtcp *);
32  ~DTCtcp();
33 
34  DTCtcp *Accept();
35  void Connect(const char *hostaddr, int port);
36  void Connect(unsigned long hostaddr, int port);
37  int Disconnect();
38 
39  short Id();
40  unsigned long addr();
41  int Send(char *buffer, int size);
42  int Receive(char *buffer, int size);
43 };
44 
45 #endif
DTCtcp::port
int port
Definition: DTSpyHelper.h:20
runTheMatrix.opt
opt
Definition: runTheMatrix.py:297
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DTCtcp::addr
unsigned long addr()
Definition: DTSpyHelper.cc:89
DTCtcp
Definition: DTSpyHelper.h:18
DTCtcp::Send
int Send(char *buffer, int size)
Definition: DTSpyHelper.cc:165
DTCtcp::myaddr
struct sockaddr_in myaddr
Definition: DTSpyHelper.h:25
DTCtcp::clientAddr
struct sockaddr_in clientAddr
Definition: DTSpyHelper.h:24
DTtcpExcp
Definition: DTSpyHelper.h:11
DTCtcp::~DTCtcp
~DTCtcp()
Definition: DTSpyHelper.cc:76
DTCtcp::Id
short Id()
Definition: DTSpyHelper.cc:83
DTCtcp::Disconnect
int Disconnect()
Definition: DTSpyHelper.cc:95
DTtcpExcp::errornumber
int errornumber
Definition: DTSpyHelper.h:12
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
DTtcpExcp::DTtcpExcp
DTtcpExcp(int err)
Definition: DTSpyHelper.h:15
DTCtcp::connected
int connected
Definition: DTSpyHelper.h:23
DTCtcp::sock
int sock
Definition: DTSpyHelper.h:21
DTCtcp::Connect
void Connect(const char *hostaddr, int port)
Definition: DTSpyHelper.cc:133
DTCtcp::Accept
DTCtcp * Accept()
Definition: DTSpyHelper.cc:100
DTCtcp::DTCtcp
DTCtcp()
Definition: DTSpyHelper.cc:15
DTCtcp::Receive
int Receive(char *buffer, int size)
Definition: DTSpyHelper.cc:145
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443