Bredbandskollen CLI
1.2
Asynchronous network task engine
|
This is the complete list of members for WSBlistener, including all inherited members.
abortAllTasks() | Task | inlineprotected |
abortMyTasks() | Task | inlineprotected |
abortTask(Task *task) | Task | inlineprotected |
addConnected(SocketConnection *conn) | Task | protected |
addConnection(SocketConnection *conn) | Task | protected |
addNewTask(Task *task, Task *parent=nullptr) | Task | inlineprotected |
addNewThread(Task *task, const std::string &name="ThreadLoop", std::ostream *log_file=nullptr, Task *parent=nullptr) | Task | inlineprotected |
addServer(ServerSocket *conn) | Task | protected |
adoptConnection(Socket *conn) | Task | virtual |
bytesReceived() const | Task | inline |
bytesSent() const | Task | inline |
cancelConnection(SocketConnection *s) | Task | inline |
clientConnected() const (defined in WSBlistener) | WSBlistener | inline |
connAdded(SocketConnection *s) override | WSBlistener | virtual |
connectionReady(SocketConnection *) | Task | virtual |
connRemoved(SocketConnection *s) override | WSBlistener | virtual |
corsHeader(HttpServerConnection *conn, const std::string &domain) | WebServerTask | static |
createHashKey(unsigned int length=20) | Logger | static |
createWorker(std::ostream *log_file=nullptr, unsigned int channels=1, unsigned int wno=0) | Task | inlineprotected |
createWorker(const std::string &log_file_name, unsigned int channels=1, unsigned int wno=0) | Task | inlineprotected |
createWorkerTask(unsigned int wno) | Task | inlinevirtual |
dateString(time_t t=0) | Logger | static |
dateString2(time_t t=0) | Logger | static |
dbg_log() const | Logger | inlineprotected |
elapsed() const | Task | inline |
err_log(const std::string &label) | Logger | inlinestatic |
err_log() const | Logger | inlineprotected |
errno_log() const | Logger | protected |
executeHandler(Task *receiver, const std::string &message) | Task | inline |
finishedOK() const | Task | inline |
finishWorkerTask(unsigned int) | Task | inlinevirtual |
flushLogFile() | Logger | inlinestatic |
getMyConnections() const | Task | |
getMyTasks(std::set< Task * > &tset) | Task | inlineprotected |
handleExecution(Task *sender, const std::string &message) | Task | inlineprotectedvirtual |
hasExpired(const TimePoint &t) | Logger | inlinestatic |
hasStarted() const | Task | inline |
headers(const std::string &code) (defined in WebServerTask) | WebServerTask | inline |
HttpTask(const std::string &name) (defined in HttpTask) | HttpTask | inline |
inError() | Logger | inlinestatic |
isActive(Socket *conn) const | Task | inline |
killChildTaskWhenFinished() | Task | inline |
label() const | Logger | inline |
lastPostData(HttpServerConnection *conn, const char *buffer, size_t len) | WebServerTask | virtual |
listenPort() const (defined in WSBlistener) | WSBlistener | inline |
log(const std::string &label) | Logger | inlinestatic |
log() const | Logger | inlineprotected |
Logger(std::string label) | Logger | inline |
message() const | Task | inline |
msgFromConnection(SocketConnection *, const std::string &) | Task | virtual |
msSince(const TimePoint &t) | Logger | static |
msTo(const TimePoint &t) | Logger | static |
newClient(int fd, const char *ip, uint16_t port, ServerSocket *) final | WebServerTask | virtual |
newGetRequest(HttpServerConnection *, const std::string &) | WebServerTask | inlinevirtual |
newPostRequest(HttpServerConnection *conn, const std::string &uri) (defined in WebServerTask) | WebServerTask | virtual |
newWorkerChannel(SocketReceiver *srv, unsigned int chan) override | WebServerTask | virtual |
newWsRequest(HttpServerConnection *conn, const std::string &uri) override | WSBlistener | virtual |
notifyBytesReceived(uint64_t n) | Task | inline |
notifyBytesSent(uint64_t n) | Task | inline |
parseListen(const TaskConfig &tc, const std::string &log_label) | Task | protected |
partialPostData(HttpServerConnection *conn, const char *buffer, size_t len) | WebServerTask | virtual |
pauseLogging() | Logger | inlinestatic |
preflightRequest(HttpServerConnection *, const std::string &) | WebServerTask | inlinevirtual |
processFinished(int pid, int wstatus) override | WSBlistener | virtual |
reopenLogFile(const std::string &filename) | Logger | static |
resetByteCount() | Task | inline |
resetLabel(const std::string &new_label) | Logger | inline |
resetTimer(double s) | Task | inline |
result() const | Task | inline |
run_browser(const std::string &url) (defined in WSBlistener) | WSBlistener | |
runProcess(const char *const argv[]) | Task | protected |
sayTime(std::ostream &stream) | Logger | static |
secondsSince(const TimePoint &t) | Logger | static |
secondsTo(const TimePoint &t) | Logger | static |
sendMsgToClient(const std::string &msg) (defined in WSBlistener) | WSBlistener | inline |
sendResponseData(HttpServerConnection *, size_t) | WebServerTask | inlinevirtual |
sendWsData(HttpConnection *conn) | HttpTask | virtual |
serverAdded(ServerSocket *s) override | WSBlistener | virtual |
serverRemoved(ServerSocket *s) override | WSBlistener | virtual |
setCookie(const std::string &name, const std::string &val, long expiry=0, const std::string &path="/", std::string domain="") const | WebServerTask | |
setError(const std::string &msg) | Task | inlineprotectedvirtual |
setFixedHeaders(const std::string &hdr) | WebServerTask | inline |
setLogFile(std::ostream &stream) | Logger | static |
setLogLimit(unsigned int loglines=0, unsigned int warnlines=0, unsigned int errlines=0) | Logger | static |
setMessage(const std::string &msg) | Task | protected |
setResult(const std::string &res) | Task | protected |
setTimeout() | Task | inlineprotectedvirtual |
setWebRoot(const std::string &path) (defined in WebServerTask) | WebServerTask | inline |
start() override | WebServerTask | virtual |
startObserving(Task *to) | Task | inline |
Task(const std::string &task_name) | Task | |
taskFinished(Task *task) | Task | inlineprotectedvirtual |
taskMessage(Task *task) | Task | inlineprotectedvirtual |
terminated() const | Task | inlineprotected |
the_config (defined in WebServerTask) | WebServerTask | protected |
timeAfter(double s) | Logger | inlinestatic |
timeMax() | Logger | inlinestatic |
timeNow() | Logger | inlinestatic |
timerEvent() | Task | inlinevirtual |
tlsSetKey(ServerSocket *conn, const std::string &crt_path, const std::string &key_path, const std::string &password) | Task | inlineprotectedvirtual |
toUs(double t) | Logger | inlinestatic |
url() const (defined in WSBlistener) | WSBlistener | inline |
wakeUp() | Task | |
wakeUpConnection(SocketConnection *s) | Task | inline |
warn_log(const std::string &label) | Logger | inlinestatic |
warn_log() const | Logger | inlineprotected |
wasError() const | Task | inline |
wasKilled() const | Task | inline |
wasTimeout() const | Task | inline |
webRoot() const (defined in WebServerTask) | WebServerTask | inline |
WebServerTask(const std::string &name, const TaskConfig &cfg=TaskConfig()) (defined in WebServerTask) | WebServerTask | |
workerMessage(SocketReceiver *, const char *buf, size_t len) | Task | inlinevirtual |
wsBinData(HttpConnection *, const char *, size_t) | HttpTask | inlinevirtual |
wsBinHeader(HttpConnection *, size_t) | HttpTask | inlinevirtual |
wsBinMessage(HttpConnection *, const std::string &msg) | HttpTask | virtual |
WSBlistener(Task *bridge, const TaskConfig &cfg) (defined in WSBlistener) | WSBlistener | |
wsHandshakeFinished(HttpServerConnection *conn, const std::string &uri) | WebServerTask | virtual |
wsTextData(HttpConnection *, const char *, size_t) | HttpTask | inlinevirtual |
wsTextHeader(HttpConnection *, size_t) | HttpTask | inlinevirtual |
wsTextMessage(HttpConnection *conn, const std::string &msg) override | WSBlistener | virtual |
~Task() | Task | virtual |