mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 22:17:57 -05:00
40 lines
758 B
C++
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_ */
|