MCPcopy Create free account
hub / github.com/cesanta/mongoose / usage

Function usage

tutorials/http/file-transfer/server.c:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void usage(const char *prog) {
114 fprintf(stderr,
115 "File Transfer server based on Mongoose v.%s\n"
116 "Usage: %s OPTIONS\n"
117 " -u NAME - user name, default: '%s'\n"
118 " -p PWD - password, default: '%s'\n"
119 " -d DIR - directory to serve, default: '%s'\n"
120 " -D DIR - directory to store uploads, default: '%s'\n"
121 " -s SIZE - maximum allowed file size, default: '%d'\n"
122 " -l ADDR - listening address, default: '%s'\n"
123 " -v LEVEL - debug level, from 0 to 4, default: %d\n",
124 MG_VERSION, prog, s_user, s_pass, s_root_dir, s_upld_dir, s_max_size,
125 s_listening_address, s_debug_level);
126 exit(EXIT_FAILURE);
127}
128
129int main(int argc, char *argv[]) {
130 char spath[MG_PATH_MAX] = ".";

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected