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
Adding test
[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
system("PAUSE");
6
}
7
8
int main(){
9
std::string uri,api,verb, req;
10
char * request = (char*)req.c_str();
11
afb::wsj1 sj1;
12
sj1.connect(uri);
13
sj1.call(api.c_str(),verb.c_str(),request,onreply);
14
15
return EXIT_SUCCESS;
16
}