added logic to stop/start FriendServer from GUI

This commit is contained in:
csoler 2021-10-29 21:44:30 +02:00
parent 19e42663a0
commit d948086b5e
7 changed files with 105 additions and 17 deletions

View file

@ -61,16 +61,16 @@ int main(int argc, char* argv[])
{
std::this_thread::sleep_for(std::chrono::seconds(2));
// send one request for testing to see what happens
RsFriendServerClientPublishItem *item = new RsFriendServerClientPublishItem();
item->long_invite = std::string("[Long Invite]");
item->n_requested_friends = 10;
std::cerr << "Sending fake request item for testing..." << std::endl;
FsClient(std::string("127.0.0.1")).sendItem(item);
std::this_thread::sleep_for(std::chrono::seconds(4));
// // send one request for testing to see what happens
//
// RsFriendServerClientPublishItem *item = new RsFriendServerClientPublishItem();
// item->long_invite = std::string("[Long Invite]");
// item->n_requested_friends = 10;
//
// std::cerr << "Sending fake request item for testing..." << std::endl;
// FsClient(std::string("127.0.0.1")).sendItem(item);
//
// std::this_thread::sleep_for(std::chrono::seconds(4));
}
return 0;
}