Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/listenToKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ int main() {
getchar();
cout << "remove listener" << endl;
n->removeListener("dqid", NULLSTR, theListener);//Cancel listening
int c;
while ((c = getchar()) != '\n' && c != EOF);
getchar();

return 0;
Expand Down
3 changes: 3 additions & 0 deletions examples/subscribeServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ int main() {
n->registerInstance("ss", "127.0.0.1", 33);
n->registerInstance("ss", "127.0.0.1", 34);
cout << "Press any key to deregister services" << endl;
int c;
while ((c = getchar()) != '\n' && c != EOF);
getchar();

n->deregisterInstance("ss", "127.0.0.1", 33);
n->deregisterInstance("ss", "127.0.0.1", 34);
cout << "All instances Unregistered, press any key to finish testing" << endl;
while ((c = getchar()) != '\n' && c != EOF);
getchar();

return 0;
Expand Down