You are on page 1of 1

/*

* Simple_ftp.h
*/
#ifndef MY_FTP_H_
#define MY_FTP_H_
#include <FBase.h>
#include <FNet.h>
#include <FIo.h>

using namespace Osp::Base;


using namespace Osp::Base::Runtime;
using namespace Osp::Net::Sockets;
using namespace Osp::Net;
using namespace Osp::Base::Utility;
using namespace Osp::Io;

class Simple_ftp {
public:
result r;
Socket *socket;
char *response;

Simple_ftp();
virtual ~Simple_ftp();
void connect(String host, int port);
void auth(String user, String pass);
void SendLine(String line);
void disconnect(void);
ByteBuffer* StringToBufferN(String &data, bool cutZeroEnd);
void ByteBufferToStringBis();
String readLine();
void cwd(String dir);
void stor(String filename);

void ReceiveData();
};
#endif /* MY_FTP_H_ */

You might also like