-
Notifications
You must be signed in to change notification settings - Fork 3
/
FTPD_cmd.hh
51 lines (41 loc) · 1.03 KB
/
FTPD_cmd.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Copyright 2009-2016 M. Shulhan (ms@kilabit.info). All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef _LIBVOS_FTP_COMMAND_HH
#define _LIBVOS_FTP_COMMAND_HH 1
#include <ctype.h>
#include "FTP_cmd.hh"
namespace vos {
/**
* @class : FTPD_cmd
* @attr :
* - _code : command code.
* - _name : command name.
* - _parm : command parameter.
* - _callback : pointer to function callback.
* @desc :
* This class contain command code and parameter.
*/
class FTPD_cmd : public Object {
public:
FTPD_cmd();
~FTPD_cmd();
void reset();
void set(FTPD_cmd *cmd);
void dump();
int _code;
Buffer _name;
Buffer _parm;
void (*_callback)(const void* FTPD_p, const void* FTPD_client_p);
static FTPD_cmd* INIT(const int code, const char* name
, void (*callback)(const void*, const void*));
static const char* __cname;
private:
FTPD_cmd(const FTPD_cmd&);
void operator=(const FTPD_cmd&);
};
} /* namespace::vos */
#endif
// vi: ts=8 sw=8 tw=78: