Rueba
1.0
Refectory Access System
codePlaca
conexaoServidor.h
1
#ifndef CONEXAOSERVIDOR_H
2
#define CONEXAOSERVIDOR_H
3
#include <iostream>
4
#include <string>
5
#include <curl/curl.h>
6
#include "lib/json/json.h"
7
8
using namespace
std
;
9
10
//Endereço do servidor
11
static
std::string serverUrl =
"http://rueba.site/api"
;
12
13
class
conexaoServidor
14
{
15
//Necessário para conexão com o servidor
16
CURL *curl;
17
CURLcode res;
18
std::string readBuffer;
19
std::string linkServidor;
20
21
public
:
22
conexaoServidor
();
23
int
verificaCarteirinha(
string
carteirinha);
24
int
confirmaRecarga(
string
carteirinha);
25
int
atualizaTotalUsuarios(
int
total);
26
};
27
#endif
std
conexaoServidor
Definition:
conexaoServidor.h:13
Generated by
1.8.13