Files
MP-SPDZ/Tools/NetworkOptions.h
Marcel Keller 6a424539c9 SoftSpokenOT.
2022-08-25 13:23:18 +10:00

37 lines
713 B
C++

/*
* NetworkOptions.h
*
*/
#ifndef TOOLS_NETWORKOPTIONS_H_
#define TOOLS_NETWORKOPTIONS_H_
#include "ezOptionParser.h"
#include "Networking/Server.h"
#include "Networking/Player.h"
#include <string>
class NetworkOptions
{
public:
int portnum_base;
std::string hostname;
NetworkOptions(ez::ezOptionParser& opt, int argc, const char** argv);
};
class NetworkOptionsWithNumber : public NetworkOptions
{
public:
int nplayers;
std::string ip_filename;
NetworkOptionsWithNumber(ez::ezOptionParser& opt, int argc,
const char** argv, int default_nplayers, bool variable_nplayers);
Server* start_networking(Names& N, int my_num);
};
#endif /* TOOLS_NETWORKOPTIONS_H_ */