MCPcopy Create free account
hub / github.com/3rdparty/libprocess / ServerProcess

Method ServerProcess

src/http.cpp:1997–2004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1995{
1996public:
1997 ServerProcess(
1998 network::Socket&& socket,
1999 std::function<Future<Response>(
2000 const network::Socket&,
2001 const Request&)>&& f)
2002 : socket(std::move(socket)),
2003 f(std::move(f)),
2004 state(State::INITIALIZED) {}
2005
2006 // `Server` implementation.
2007 Future<Nothing> run()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected