mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
added logic to stop/start FriendServer from GUI
This commit is contained in:
parent
19e42663a0
commit
d948086b5e
7 changed files with 105 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue