MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / trigger

Method trigger

src/rpc/core/httpserver.cpp:519–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void HTTPEvent::trigger(struct timeval* tv) {
520 if (tv == nullptr)
521 event_active(ev, 0, 0); // immediately trigger event in main thread
522 else
523 evtimer_add(ev, tv); // trigger after timeval passed
524}
525
526HTTPRequest::HTTPRequest(struct evhttp_request* _req) : req(_req), replySent(false) {
527

Callers 2

WriteReplyMethod · 0.80
HTTPRPCTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected