Bredbandskollen CLI  1.2
Asynchronous network task engine
WSBlistener Member List

This is the complete list of members for WSBlistener, including all inherited members.

abortAllTasks()Taskinlineprotected
abortMyTasks()Taskinlineprotected
abortTask(Task *task)Taskinlineprotected
addConnected(SocketConnection *conn)Taskprotected
addConnection(SocketConnection *conn)Taskprotected
addNewTask(Task *task, Task *parent=nullptr)Taskinlineprotected
addNewThread(Task *task, const std::string &name="ThreadLoop", std::ostream *log_file=nullptr, Task *parent=nullptr)Taskinlineprotected
addServer(ServerSocket *conn)Taskprotected
adoptConnection(Socket *conn)Taskvirtual
bytesReceived() constTaskinline
bytesSent() constTaskinline
cancelConnection(SocketConnection *s)Taskinline
clientConnected() const (defined in WSBlistener)WSBlistenerinline
connAdded(SocketConnection *s) overrideWSBlistenervirtual
connectionReady(SocketConnection *)Taskvirtual
connRemoved(SocketConnection *s) overrideWSBlistenervirtual
corsHeader(HttpServerConnection *conn, const std::string &domain)WebServerTaskstatic
createHashKey(unsigned int length=20)Loggerstatic
createWorker(std::ostream *log_file=nullptr, unsigned int channels=1, unsigned int wno=0)Taskinlineprotected
createWorker(const std::string &log_file_name, unsigned int channels=1, unsigned int wno=0)Taskinlineprotected
createWorkerTask(unsigned int wno)Taskinlinevirtual
dateString(time_t t=0)Loggerstatic
dateString2(time_t t=0)Loggerstatic
dbg_log() constLoggerinlineprotected
elapsed() constTaskinline
err_log(const std::string &label)Loggerinlinestatic
err_log() constLoggerinlineprotected
errno_log() constLoggerprotected
executeHandler(Task *receiver, const std::string &message)Taskinline
finishedOK() constTaskinline
finishWorkerTask(unsigned int)Taskinlinevirtual
flushLogFile()Loggerinlinestatic
getMyConnections() constTask
getMyTasks(std::set< Task * > &tset)Taskinlineprotected
handleExecution(Task *sender, const std::string &message)Taskinlineprotectedvirtual
hasExpired(const TimePoint &t)Loggerinlinestatic
hasStarted() constTaskinline
headers(const std::string &code) (defined in WebServerTask)WebServerTaskinline
HttpTask(const std::string &name) (defined in HttpTask)HttpTaskinline
inError()Loggerinlinestatic
isActive(Socket *conn) constTaskinline
killChildTaskWhenFinished()Taskinline
label() constLoggerinline
lastPostData(HttpServerConnection *conn, const char *buffer, size_t len)WebServerTaskvirtual
listenPort() const (defined in WSBlistener)WSBlistenerinline
log(const std::string &label)Loggerinlinestatic
log() constLoggerinlineprotected
Logger(std::string label)Loggerinline
message() constTaskinline
msgFromConnection(SocketConnection *, const std::string &)Taskvirtual
msSince(const TimePoint &t)Loggerstatic
msTo(const TimePoint &t)Loggerstatic
newClient(int fd, const char *ip, uint16_t port, ServerSocket *) finalWebServerTaskvirtual
newGetRequest(HttpServerConnection *, const std::string &)WebServerTaskinlinevirtual
newPostRequest(HttpServerConnection *conn, const std::string &uri) (defined in WebServerTask)WebServerTaskvirtual
newWorkerChannel(SocketReceiver *srv, unsigned int chan) overrideWebServerTaskvirtual
newWsRequest(HttpServerConnection *conn, const std::string &uri) overrideWSBlistenervirtual
notifyBytesReceived(uint64_t n)Taskinline
notifyBytesSent(uint64_t n)Taskinline
parseListen(const TaskConfig &tc, const std::string &log_label)Taskprotected
partialPostData(HttpServerConnection *conn, const char *buffer, size_t len)WebServerTaskvirtual
pauseLogging()Loggerinlinestatic
preflightRequest(HttpServerConnection *, const std::string &)WebServerTaskinlinevirtual
processFinished(int pid, int wstatus) overrideWSBlistenervirtual
reopenLogFile(const std::string &filename)Loggerstatic
resetByteCount()Taskinline
resetLabel(const std::string &new_label)Loggerinline
resetTimer(double s)Taskinline
result() constTaskinline
run_browser(const std::string &url) (defined in WSBlistener)WSBlistener
runProcess(const char *const argv[])Taskprotected
sayTime(std::ostream &stream)Loggerstatic
secondsSince(const TimePoint &t)Loggerstatic
secondsTo(const TimePoint &t)Loggerstatic
sendMsgToClient(const std::string &msg) (defined in WSBlistener)WSBlistenerinline
sendResponseData(HttpServerConnection *, size_t)WebServerTaskinlinevirtual
sendWsData(HttpConnection *conn)HttpTaskvirtual
serverAdded(ServerSocket *s) overrideWSBlistenervirtual
serverRemoved(ServerSocket *s) overrideWSBlistenervirtual
setCookie(const std::string &name, const std::string &val, long expiry=0, const std::string &path="/", std::string domain="") constWebServerTask
setError(const std::string &msg)Taskinlineprotectedvirtual
setFixedHeaders(const std::string &hdr)WebServerTaskinline
setLogFile(std::ostream &stream)Loggerstatic
setLogLimit(unsigned int loglines=0, unsigned int warnlines=0, unsigned int errlines=0)Loggerstatic
setMessage(const std::string &msg)Taskprotected
setResult(const std::string &res)Taskprotected
setTimeout()Taskinlineprotectedvirtual
setWebRoot(const std::string &path) (defined in WebServerTask)WebServerTaskinline
start() overrideWebServerTaskvirtual
startObserving(Task *to)Taskinline
Task(const std::string &task_name)Task
taskFinished(Task *task)Taskinlineprotectedvirtual
taskMessage(Task *task)Taskinlineprotectedvirtual
terminated() constTaskinlineprotected
the_config (defined in WebServerTask)WebServerTaskprotected
timeAfter(double s)Loggerinlinestatic
timeMax()Loggerinlinestatic
timeNow()Loggerinlinestatic
timerEvent()Taskinlinevirtual
tlsSetKey(ServerSocket *conn, const std::string &crt_path, const std::string &key_path, const std::string &password)Taskinlineprotectedvirtual
toUs(double t)Loggerinlinestatic
url() const (defined in WSBlistener)WSBlistenerinline
wakeUp()Task
wakeUpConnection(SocketConnection *s)Taskinline
warn_log(const std::string &label)Loggerinlinestatic
warn_log() constLoggerinlineprotected
wasError() constTaskinline
wasKilled() constTaskinline
wasTimeout() constTaskinline
webRoot() const (defined in WebServerTask)WebServerTaskinline
WebServerTask(const std::string &name, const TaskConfig &cfg=TaskConfig()) (defined in WebServerTask)WebServerTask
workerMessage(SocketReceiver *, const char *buf, size_t len)Taskinlinevirtual
wsBinData(HttpConnection *, const char *, size_t)HttpTaskinlinevirtual
wsBinHeader(HttpConnection *, size_t)HttpTaskinlinevirtual
wsBinMessage(HttpConnection *, const std::string &msg)HttpTaskvirtual
WSBlistener(Task *bridge, const TaskConfig &cfg) (defined in WSBlistener)WSBlistener
wsHandshakeFinished(HttpServerConnection *conn, const std::string &uri)WebServerTaskvirtual
wsTextData(HttpConnection *, const char *, size_t)HttpTaskinlinevirtual
wsTextHeader(HttpConnection *, size_t)HttpTaskinlinevirtual
wsTextMessage(HttpConnection *conn, const std::string &msg) overrideWSBlistenervirtual
~Task()Taskvirtual