| #ifndef VSFTP_NETSTR_H |
| #define VSFTP_NETSTR_H |
| |
| struct mystr; |
| struct vsf_session; |
| |
| typedef int (*str_netfd_read_t)(struct vsf_session* |
| p_sess, char*, |
| unsigned int); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int str_netfd_alloc(struct vsf_session* p_sess, |
| struct mystr* p_str, |
| char term, |
| char* p_readbuf, |
| unsigned int maxlen, |
| str_netfd_read_t p_peekfunc, |
| str_netfd_read_t p_readfunc); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int str_netfd_read(struct mystr* p_str, int fd, unsigned int len); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int str_netfd_write(const struct mystr* p_str, int fd); |
| |
| #endif |
| |