mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Add REQ-REP zmq/nn sockets to FairMQ together with a little example program.
Also includes example of using boost::program_options.
This commit is contained in:
32
fairmq/examples/req-rep/FairMQExampleServer.h
Normal file
32
fairmq/examples/req-rep/FairMQExampleServer.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* *
|
||||
* This software is distributed under the terms of the *
|
||||
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
|
||||
* copied verbatim in the file "LICENSE" *
|
||||
********************************************************************************/
|
||||
/**
|
||||
* FairMQExampleServer.h
|
||||
*
|
||||
* @since 2014-10-10
|
||||
* @author A. Rybalchenko
|
||||
*/
|
||||
|
||||
#ifndef FAIRMQEXAMPLESERVER_H_
|
||||
#define FAIRMQEXAMPLESERVER_H_
|
||||
|
||||
#include "FairMQDevice.h"
|
||||
|
||||
class FairMQExampleServer : public FairMQDevice
|
||||
{
|
||||
public:
|
||||
FairMQExampleServer();
|
||||
virtual ~FairMQExampleServer();
|
||||
|
||||
static void CustomCleanup(void *data, void* hint);
|
||||
|
||||
protected:
|
||||
virtual void Run();
|
||||
};
|
||||
|
||||
#endif /* FAIRMQEXAMPLESERVER_H_ */
|
Reference in New Issue
Block a user