forked from shashankkumar/CodeRunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.config.h
51 lines (43 loc) · 1.69 KB
/
sample.config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* This is the sample config file for CodeRunner.
* Before running make command, define the options suitably and
* change the name of the file from sample.config.h to config.h
* without which the source code will not compile.
* All the options should be specified correctly for CodeRunner to work properly.
* After that, simply run make command from command line.
*/
/**
* The PATH option should point to the folder in which CodeRunner is stored.
*/
#define PATH "/home/shashank/git/CodeRunner/"
/**
* Specify the username and password to be used for communication over internet with the website.
* The "username" and "password" fields will be supplied via POST request while querying for pending file ids, fetching source
* code, and sending results.
*/
#define USERNAME "shashank"
#define PASSWORD "shashank"
/** HTTPON and FTPON are two methods by which source code can be downloaded from internet.
* If the preferred method is HTTP, then specify HTTPON as true.
* otherwise specify FTPON as true.
*/
#define FTPON false
#define HTTPON true
/**
* If the preferred method for source code download is FTP, then specify the FTP username
* and password field to be user during authentication in here.
*/
#define FTPUSERNAME ""
#define FTPPASSWORD ""
/**
* Specify the FTP url for downloading source code files here.
*/
#define FTPADDRESS "/Upload/"
#define URLToGetFileIds "http://192.168.208.7/return_id.php"
#define HTTPADDRESS "http://192.168.208.7/return_sourcecode.php"
#define FILEPATH "./Files/"
#define TESTCASESPATH "./TestCases/"
#define URLToSendResults "http://192.168.208.203/push_result.php"
#define FetchFileFromFTP true
#define LOGFILEPATH "./Logs/logs2.txt"
#define SLEEPINTERVAL 30