switch4g: completely re-writen
[tomato.git] / release / src / router / vsftpd / readwrite.h
blob6bccce697a423471302c73f8fad90f415f72332b
1 #ifndef VSF_READWRITE_H
2 #define VSF_READWRITE_H
4 struct vsf_session;
5 struct mystr;
7 enum EVSFRWTarget
9 kVSFRWControl = 1,
10 kVSFRWData
13 int ftp_write_str(const struct vsf_session* p_sess, const struct mystr* p_str,
14 enum EVSFRWTarget target);
15 int ftp_read_data(struct vsf_session* p_sess, char* p_buf, unsigned int len);
16 int ftp_write_data(const struct vsf_session* p_sess, const char* p_buf,
17 unsigned int len);
18 int ftp_getline(struct vsf_session* p_sess, struct mystr* p_str, char* p_buf);
20 #endif /* VSF_READWRITE_H */