本文整理汇总了C++中ftp::Client类的典型用法代码示例。如果您正苦于以下问题:C++ Client类的具体用法?C++ Client怎么用?C++ Client使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Client类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: client
Reader::Reader(ftp::Client& client, const std::vector<std::string>& argv) :
client(client), open(false)
{
util::ProcessReader::ArgvType env;
client.Child().Open(argv[0], argv, BuildEnv(client));
open = true;
}
示例2: BuildEnv
std::vector<std::string> BuildEnv(ftp::Client& client)
{
std::ostringstream os;
os << "USER=" << client.User().Name() << "\n"
<< "UID=" << client.User().ID() << "\n"
<< "FLAGS=" << client.User().Flags() << "\n"
<< "TAGLINE=" << client.User().Tagline() << "\n"
<< "GROUP=" << client.User().PrimaryGroup() << "\n"
<< "GID=" << client.User().PrimaryGID() << "\n"
<< "HOST=" << client.Ident() << "@" << client.IP();
std::string envStr(os.str());
std::vector<std::string> env;
util::Split(env, envStr, "\n", true);
return env;
}
示例3: RETRCommand
RETRCommand(ftp::Client& client, const std::string& argStr, const Args& args) :
Command(client, client.Control(), client.Data(), argStr, args) { }
示例4: CHOWNCommand
CHOWNCommand(ftp::Client& client, const std::string& argStr, const Args& args) :
Command(client, client.Control(), client.Data(), argStr, args),
owner(-1, -1), recursive(false), dirs(0), files(0), failed(0) { }
示例5: ADDUSERCommand
ADDUSERCommand(ftp::Client& client, const std::string& argStr, const Args& args) :
Command(client, client.Control(), client.Data(), argStr, args), gadmin(false) { }
示例6: LOGSCommand
LOGSCommand(ftp::Client& client, const std::string& argStr, const Args& args) :
Command(client, client.Control(), client.Data(), argStr, args),
number(defaultNumberLines) { }