diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
| commit | c7a201b58080c7a0f57b38c59e7865aa42c1d029 (patch) | |
| tree | cde6146e3aada31e68594fd4f034abe90621ce34 /readwrite.h | |
| download | vsftpd-master.tar.gz vsftpd-master.zip | |
Import vsftpd-3.0.5.tar.gzHEADlocal/vsftpdmaster
Diffstat (limited to 'readwrite.h')
| -rw-r--r-- | readwrite.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/readwrite.h b/readwrite.h new file mode 100644 index 0000000..6bccce6 --- /dev/null +++ b/readwrite.h @@ -0,0 +1,21 @@ +#ifndef VSF_READWRITE_H +#define VSF_READWRITE_H + +struct vsf_session; +struct mystr; + +enum EVSFRWTarget +{ + kVSFRWControl = 1, + kVSFRWData +}; + +int ftp_write_str(const struct vsf_session* p_sess, const struct mystr* p_str, + enum EVSFRWTarget target); +int ftp_read_data(struct vsf_session* p_sess, char* p_buf, unsigned int len); +int ftp_write_data(const struct vsf_session* p_sess, const char* p_buf, + unsigned int len); +int ftp_getline(struct vsf_session* p_sess, struct mystr* p_str, char* p_buf); + +#endif /* VSF_READWRITE_H */ + |
