repo.or.cz
/
opsoft.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
usage info
[opsoft.git]
/
gclib2
/
include
/
FTP.h
blob
096649d232975f83ddde52686f03ee924c4939e4
1
/*
2
* (c) Oleg Puchinin 2008
3
* graycardinalster@gmail.com
4
*
5
*/
6
7
#ifndef DEFINE_FTP_H
8
#define DEFINE_FTP_H
9
10
class
FTP
:
Connection
11
{
12
public
:
13
FTP
();
14
FTP
(
bool
passive
);
15
~
FTP
();
16
17
int
connect
(
char
*
server
,
uint16_t
port
=
21
);
18
int
login
(
char
*
l
,
char
*
p
);
19
20
private
:
21
List
*
waitReply
();
22
int
checkReply
(
int
needle
);
23
int
typeI
();
24
int
pasv
();
25
int
port
();
26
char
*
syst
();
27
bool
m_passive
;
28
Connection
*
m_dataConnection
;
29
};
30
31
#endif
32