readwrite.h 564 B

123456789101112131415161718192021
  1. #ifndef VSF_READWRITE_H
  2. #define VSF_READWRITE_H
  3. struct vsf_session;
  4. struct mystr;
  5. enum EVSFRWTarget
  6. {
  7. kVSFRWControl = 1,
  8. kVSFRWData
  9. };
  10. int ftp_write_str(const struct vsf_session* p_sess, const struct mystr* p_str,
  11. enum EVSFRWTarget target);
  12. int ftp_read_data(struct vsf_session* p_sess, char* p_buf, unsigned int len);
  13. int ftp_write_data(const struct vsf_session* p_sess, const char* p_buf,
  14. unsigned int len);
  15. int ftp_getline(struct vsf_session* p_sess, struct mystr* p_str, char* p_buf);
  16. #endif /* VSF_READWRITE_H */