10 #include <torchcraft/client.h> 18 template <
typename procT>
23 auto client = std::make_shared<torchcraft::Client>();
24 if (!proc->connect(client.get(), timeout)) {
25 throw std::runtime_error(
26 std::string(
"Error establishing connection: ") + client->error());
30 std::vector<std::string> upd;
31 if (!client->init(upd, opts)) {
32 throw std::runtime_error(
33 std::string(
"Error initializing connection: ") + client->error());
std::shared_ptr< torchcraft::Client > makeTorchCraftClient(procT &&proc, torchcraft::Client::Options opts, int timeout)
Definition: torchcraftclient.h:19
Main namespace for bot-related code.
Definition: areainfo.cpp:17