Files
MP-SPDZ/Tools/OfflineMachineBase.h
2021-09-17 14:31:25 +10:00

40 lines
758 B
C++

/*
* OfflineMachineBase.h
*
*/
#ifndef TOOLS_OFFLINEMACHINEBASE_H_
#define TOOLS_OFFLINEMACHINEBASE_H_
#include "Tools/ezOptionParser.h"
#include "Networking/Server.h"
#include "Networking/Player.h"
class OfflineParams
{
public:
bool output;
int nthreads;
OfflineParams() : output(false), nthreads(0) {}
};
class OfflineMachineBase : virtual public OfflineParams
{
protected:
ez::ezOptionParser opt;
public:
Names N;
int my_num, nplayers;
long long ntriples, nTriplesPerThread;
OfflineMachineBase();
~OfflineMachineBase();
void parse_options(int argc, const char** argv);
void start_networking_with_server(string hostname = "localhost", int portnum = 5000);
};
#endif /* TOOLS_OFFLINEMACHINEBASE_H_ */