Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 641 Bytes
#ifndef LKLFTPD_CMDIO_H__
#define LKLFTPD_CMDIO_H__
#include <apr_errno.h>
#include "worker.h"
#include "sess.h"
#define FTP_ENDCOMMAND_SEQUENCE "\r\n"
apr_status_t lfd_cmdio_write(struct lfd_sess * sess, int cmd, const char *msg, ...);
/**
* PURPOSE - Read an FTP command (and optional argument) from the FTP control connection.
* PARAMETERS:
sess - The current session object
p_cmd_str - Where to put the FTP command string (may be empty)
p_arg_str - Where to put the FTP argument string (may be empty)
**/
apr_status_t lfd_cmdio_get_cmd_and_arg(struct lfd_sess* sess, char** p_cmd_str, char** p_arg_str);
#endif//LKLFTPD_CMDIO_H__