Code Review
/
src
/
app-framework-binder.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
IN PROGRESS: add C++ websocket client API
[src/app-framework-binder.git]
/
src
/
afb-wsj1-test.cpp
1
#include "afb-wsj1.hpp"
2
3
void onreply(const char *value){
4
std::cout << value << std::endl;
5
exit(0);
6
}
7
8
int main(int ac, char **av){
9
char*uri=av[1];
10
char*api =av[2];
11
char*verb =av[3];
12
char*req =av[4];
13
afb::wsj1 sj1;
14
char *x;
15
sj1.connect(uri);
16
sj1.call(api,verb,req,onreply);
17
std::cin>> x;
18
return EXIT_SUCCESS;
19
}