source: trunk/Mars/mraw/MRawSocketRead.h@ 19948

Last change on this file since 19948 was 6500, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 844 bytes
Line 
1#ifndef MARS_MRawSocketRead
2#define MARS_MRawSocketRead
3
4#ifndef MARS_MRawRead
5#include "MRawRead.h"
6#endif
7
8class MReadSocket;
9
10class MRawSocketRead : public MRawRead
11{
12private:
13 MReadSocket *fIn; //! buffered input stream (file to read from)
14 MParList *fParList; //!
15
16 UInt_t fRunNumber; //!
17 UInt_t fEvtNumber; //!
18
19 Int_t fPort; // Port on which we wait for the connection
20
21 Bool_t OpenSocket();
22
23 Int_t PreProcess(MParList *pList);
24 Int_t Process();
25 Int_t PostProcess();
26
27public:
28 MRawSocketRead(const char *name=NULL, const char *title=NULL);
29 ~MRawSocketRead();
30
31 void SetPort(int port) { fPort = port; }
32
33 TString GetFullFileName() const { return "<socket>"; }
34
35 ClassDef(MRawSocketRead, 0) //Task to read DAQ binary data from tcp/ip socket
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.