ClienteTFG/conexion.h

19 lines
370 B
C
Raw Normal View History

2020-05-08 12:42:02 +02:00
#ifndef CONEXION_H
#define CONEXION_H
#include "config_reader.h"
class conexion
{
public:
conexion(config_reader &conf);
virtual ssize_t read_string(std::string &entrada, int size);
virtual ssize_t write_string(std::string entrada);
bool check_pass(std::string usernem, std::string pass);
protected:
config_reader *config;
int fd;
};
#endif // CONEXION_H