aboutsummaryrefslogtreecommitdiff
path: root/lib/base/filepush.h
blob: b8d9f22176ef0f613c31c8cee03ccbee95195556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __lib_base_filepush_h
#define __lib_base_filepush_h

#include <lib/base/thread.h>

class eFilePushThread: public eThread
{
public:
	eFilePushThread();
	void thread();
	void stop();
	void start(int sourcefd, int destfd);
private:
	int m_stop;
	unsigned char m_buffer[65536];
	int m_buf_start, m_buf_end;
	int m_fd_source, m_fd_dest;
};

#endif