Frog
|
#include "frog/Frog-util.h"
#include <cstring>
#include <set>
#include <string>
#include <ostream>
#include "ticcutils/SocketBasics.h"
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
Functions | |
string | prefix (const string &path, const string &fn) |
set< string > | getFileNames (const string &dirName, const string &ext) |
string | check_server (const string &host, const string &port, const string &name) |
string check_server | ( | const string & | host, |
const string & | port, | ||
const string & | name | ||
) |
check if a certain host:port is available for us
host | the host we check |
port | the port we want to access |
name | extra information (used in diagnostics only) |
set<string> getFileNames | ( | const string & | dirName, |
const string & | ext | ||
) |
extract a (sorted) list of file-names matching an extension pattern
dirName | the search directory |
ext | the file extension we search |
string prefix | ( | const string & | path, |
const string & | fn | ||
) |
add a full path to the filename fn
path | the path to add |
fn | the filename to be prefixed |