r65emu/socket_filer.h

25 lines
414 B
C
Raw Normal View History

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) {}
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