|
std::string | mp::LongThreadName (const char *exe_name) |
|
std::tuple< ConnThread, bool > | mp::SetThread (ConnThreads &threads, std::mutex &mutex, Connection *connection, const std::function< Thread::Client()> &make_thread) |
|
template<typename InitInterface > |
std::unique_ptr< ProxyClient< InitInterface > > | mp::ConnectStream (EventLoop &loop, int fd) |
| Given stream file descriptor, make a new ProxyClient object to send requests over the stream. More...
|
|
template<typename InitInterface , typename InitImpl > |
void | mp::_Serve (EventLoop &loop, kj::Own< kj::AsyncIoStream > &&stream, InitImpl &init) |
| Given stream and init objects, construct a new ProxyServer object that handles requests from the stream by calling the init object. More...
|
|
template<typename InitInterface , typename InitImpl > |
void | mp::_Listen (EventLoop &loop, kj::Own< kj::ConnectionReceiver > &&listener, InitImpl &init) |
| Given connection receiver and an init object, handle incoming connections by calling _Serve, to create ProxyServer objects and forward requests to the init object. More...
|
|
template<typename InitInterface , typename InitImpl > |
void | mp::ServeStream (EventLoop &loop, int fd, InitImpl &init) |
| Given stream file descriptor and an init object, handle requests on the stream by calling methods on the Init object. More...
|
|
template<typename InitInterface , typename InitImpl > |
void | mp::ListenConnections (EventLoop &loop, int fd, InitImpl &init) |
| Given listening socket file descriptor and an init object, handle incoming connections and requests by calling methods on the Init object. More...
|
|