[svn] commit: r268 - in /branches/f2f200910/src: bin/parkinglot/main.cc bin/parkinglot/zoneset.h lib/cc/python/sendcmd.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 30 23:20:43 UTC 2009
Author: each
Date: Fri Oct 30 23:20:42 2009
New Revision: 268
Log:
Added sendcmd.py, which sends a specified command to a specified channel
Added:
branches/f2f200910/src/lib/cc/python/sendcmd.py (with props)
Modified:
branches/f2f200910/src/bin/parkinglot/main.cc
branches/f2f200910/src/bin/parkinglot/zoneset.h
Modified: branches/f2f200910/src/bin/parkinglot/main.cc
==============================================================================
--- branches/f2f200910/src/bin/parkinglot/main.cc (original)
+++ branches/f2f200910/src/bin/parkinglot/main.cc Fri Oct 30 23:20:42 2009
@@ -87,7 +87,7 @@
int n = select(nfds, &fds, NULL, NULL, NULL);
if (n < 0)
throw FatalError("select error");
-
+
if (FD_ISSET(ps, &fds))
plot.processMessage();
Modified: branches/f2f200910/src/bin/parkinglot/zoneset.h
==============================================================================
--- branches/f2f200910/src/bin/parkinglot/zoneset.h (original)
+++ branches/f2f200910/src/bin/parkinglot/zoneset.h Fri Oct 30 23:20:42 2009
@@ -21,8 +21,14 @@
class ZoneSet : std::set<std::string> {
public:
- void serve(std::string s) { this->insert(s); }
- void forget(std::string s) { this->erase(s); }
+ void serve(std::string s) {
+ std::cout << "now serving: " << s << std::endl;
+ this->insert(s);
+ }
+ void forget(std::string s) {
+ std::cout << "no longer serving: " << s << std::endl;
+ this->erase(s);
+ }
bool contains(std::string s) {
return (this->find(s) != this->end());
}
More information about the bind10-changes
mailing list