1 // Main authors: Mihai Niculescu 2014
3 /**************************************************************************
4 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
9 #ifndef AliThreadedSocket_H
10 #define AliThreadedSocket_H
21 class AliThreadedSocket : public TQObject
24 enum EOpenMode{READ, WRITE};
26 AliThreadedSocket(zmq::context_t *context, EOpenMode mode);
27 virtual ~AliThreadedSocket();
33 zmq::context_t* GetContext() const;
34 TThread* GetThread() const;
36 void Started(); // *SIGNAL*
37 void Stopped(); // *SIGNAL*
42 AliThreadedSocket(const AliThreadedSocket&); // Not implemented
43 AliThreadedSocket& operator=(const AliThreadedSocket&); // Not implemented
45 // reimplement these in a derived class
46 static void* RunThrdRead(void* arg);
47 static void* RunThrdWrite(void* arg);
49 zmq::context_t* fContext;
54 ClassDef(AliThreadedSocket, 0);