90int main(
int argc,
char **argv) {
92 string host =
"127.0.0.1";
95 setlocale (LC_ALL,
"");
99 int c = getopt_long(argc, argv,
"hVp:",
opts, NULL);
107 cout <<
_(
"plpftp Version ") << VERSION << endl;
114 cout <<
_(
"Invalid port definition.") << endl;
120 if (optind == argc) {
126 if (!deviceEndpoint) {
127 std::cerr <<
"plpftp: " <<
error << std::endl;
130 vector<char *> args(argv + optind, argv + argc);
131 return ftp.
session(*deviceEndpoint, *deviceEndpoint->rfsv_, *deviceEndpoint->rpcs_, *deviceEndpoint->clip_, args);
int session(DeviceEndpoint &deviceEndpoint, RFSV &rfsv, RPCS &rpcs, rclip &clipboard, std::vector< char * > argv)
int main(int argc, char **argv)
static struct option opts[]
static void error(int line)