43 bool verbose = options.
check(
"verbose");
44 bool silent = options.
check(
"silent");
53 ==========================
54 | __ __ ___ ____ ____ |
55 | \ \/ // || _ \ | _ \ |
56 | \ // /| || |/ / | |/ / |
57 | / // ___ || _ \ | _/ |
58 | /_//_/ |_||_| \_\|_| |
60 ==========================)===");
63 if (options.
check(
"help")) {
65 yCInfo(
SERVER,
" --write Write IP address and socket on the configuration file.\n");
66 yCInfo(
SERVER,
" --config filename.conf Load options from a file.\n");
67 yCInfo(
SERVER,
" --portdb ports.db Store port information in named database.\n");
69 yCInfo(
SERVER,
" Set to :memory: to store in memory (faster).\n");
70 yCInfo(
SERVER,
" --subdb subs.db Store subscription information in named database.\n");
72 yCInfo(
SERVER,
" Set to :memory: to store in memory (faster).\n");
73 yCInfo(
SERVER,
" --ip IP.AD.DR.ESS Set IP address of server.\n");
74 yCInfo(
SERVER,
" --socket NNNNN Set port number of server.\n");
75 yCInfo(
SERVER,
" --web dir Serve web resources from given directory.\n");
76 yCInfo(
SERVER,
" --no-web-cache Reload pages from file for each request.\n");
77 yCInfo(
SERVER,
" --ros Delegate pub/sub to ROS name server.\n");
83 yCInfo(
SERVER,
"Call with --help for information on available options\n");
87 if (!nc.
open(options)) {
98 double messageCounter(0);
99 double pollingRate(.1);
134 yCInfo(
SERVER,
"Name server can be browsed at http:/%s",
139 messageCounter += pollingRate;
143 if(std::modf(messageCounter / 600.0, &dummy) < .00001) {
const yarp::os::LogComponent & SERVER()
Multicast and file-based mechanisms for finding the name server.
yarp::os::Contact where()
void setPort(yarp::os::Port &port)
A simple collection of objects that can be described and transmitted in a portable way.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
A mini-server for network communication.
void setReaderCreator(PortReaderCreator &creator)
Set a creator for readers for port data.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A class for storing options and configuration information.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
void fromCommand(int argc, char *argv[], bool skipFirst=true, bool wipe=true)
Interprets a list of command arguments as a list of properties.
static void delaySystem(double seconds)
Client for YARP name server.
static NameClient & getNameClient()
Get an instance of the name client.
bool open(yarp::os::Searchable &options)
yarp::os::Contact whereDelegate()
const yarp::os::Contact & where()
void preregister(const yarp::os::Contact &c)
#define yCInfo(component,...)
#define yCError(component,...)
#define YARP_SERVERSQL_LOG_COMPONENT(name, name_string)
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
The main, catch-all namespace for YARP.