2019-03-25 16:12:38 +00:00
|
|
|
#ifndef __SOCKET_FILER_H__
|
|
|
|
#define __SOCKET_FILER_H__
|
|
|
|
|
|
|
|
class socket_filer: public filer {
|
|
|
|
public:
|
2019-03-26 19:27:25 +00:00
|
|
|
socket_filer(const char *hostname): _hostname(hostname) {}
|
|
|
|
|
2019-03-30 11:55:34 +00:00
|
|
|
const char *advance();
|
2019-03-25 16:12:38 +00:00
|
|
|
const char *rewind() { return advance(); }
|
|
|
|
|
|
|
|
const char *checkpoint();
|
|
|
|
void restore(const char *);
|
|
|
|
|
2019-03-26 19:27:25 +00:00
|
|
|
bool start();
|
2019-03-25 16:12:38 +00:00
|
|
|
void stop() {}
|
|
|
|
|
|
|
|
uint8_t read();
|
|
|
|
bool more();
|
|
|
|
void write(uint8_t);
|
2019-03-26 19:27:25 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
const char *_hostname;
|
2019-03-25 16:12:38 +00:00
|
|
|
};
|
|
|
|
#endif
|