1/*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
15 * MA 02111-1307 USA
16 */
17#ifndef VSF_READWRITE_H
18#define VSF_READWRITE_H
19
20struct vsf_session;
21struct mystr;
22
23enum EVSFRWTarget
24{
25  kVSFRWControl = 1,
26  kVSFRWData
27};
28
29int ftp_write_str(const struct vsf_session* p_sess, const struct mystr* p_str,
30                  enum EVSFRWTarget target);
31int ftp_read_data(const struct vsf_session* p_sess, char* p_buf,
32                  unsigned int len);
33int ftp_write_data(const struct vsf_session* p_sess, const char* p_buf,
34                   unsigned int len);
35void ftp_getline(const struct vsf_session* p_sess, struct mystr* p_str,
36                 char* p_buf);
37
38#endif /* VSF_READWRITE_H */
39
40