-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shaji Khan
committed
Nov 13, 2024
1 parent
1db2091
commit 10dbd31
Showing
20 changed files
with
107 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
|
||
#include <iostream> | ||
|
||
#include "client.h" | ||
|
||
using namespace std; | ||
|
||
int | ||
main(int argc, char **argv) | ||
{ | ||
int option; | ||
|
||
// setup default arguments | ||
int port = 6906; | ||
string host = "localhost"; | ||
|
||
// process command line options using getopt() | ||
// see "man 3 getopt" | ||
while ((option = getopt(argc,argv,"h:p:")) != -1) { | ||
switch (option) { | ||
case 'p': | ||
port = atoi(optarg); | ||
break; | ||
case 'h': | ||
host = optarg; | ||
break; | ||
default: | ||
cout << "client [-h host] [-p port]" << endl; | ||
exit(EXIT_FAILURE); | ||
} | ||
} | ||
|
||
Client client = Client(host, port); | ||
std::ifstream ifs(argv [1]); | ||
json j = json::parse(ifs); | ||
client.create (); | ||
cout << client.send_preset (j) << endl; | ||
|
||
//~ client.get_response (); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ class Server { | |
~Server(); | ||
|
||
Presets * presets ; | ||
void * sync ; | ||
void run(); | ||
|
||
GMainContext * context ; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#define VERSION 153 | ||
#define VERSION 154 |