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

Method trigger

src/httpserver.cpp:582–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581HTTPEvent::~HTTPEvent() { event_free(ev); }
582void HTTPEvent::trigger(struct timeval *tv)
583{
584 if (tv == nullptr)
585 event_active(ev, 0, 0); // immediately trigger event in main thread
586 else
587 evtimer_add(ev, tv); // trigger after timeval passed
588}
589HTTPRequest::HTTPRequest(struct evhttp_request *_req) : req(_req), replySent(false) {}
590HTTPRequest::~HTTPRequest()
591{

Callers 2

WriteReplyMethod · 0.80
HTTPRPCTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected