mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-27 05:32:04 +00:00
25 lines
414 B
C++
25 lines
414 B
C++
#ifndef __SOCKET_FILER_H__
|
|
#define __SOCKET_FILER_H__
|
|
|
|
class socket_filer: public filer {
|
|
public:
|
|
socket_filer(const char *hostname): _hostname(hostname) {}
|
|
|
|
const char *advance();
|
|
const char *rewind() { return advance(); }
|
|
|
|
const char *checkpoint();
|
|
void restore(const char *);
|
|
|
|
bool start();
|
|
void stop() {}
|
|
|
|
uint8_t read();
|
|
bool more();
|
|
void write(uint8_t);
|
|
|
|
private:
|
|
const char *_hostname;
|
|
};
|
|
#endif
|