[svn] commit: r1929 - /branches/feng-authnotify/src/bin/auth/main.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed May 26 08:01:56 UTC 2010
Author: zhanglikun
Date: Wed May 26 08:01:55 2010
New Revision: 1929
Log:
Make answer message can be got for temp session in auth process by adding sequence id to group_recvmsg()
Modified:
branches/feng-authnotify/src/bin/auth/main.cc
Modified: branches/feng-authnotify/src/bin/auth/main.cc
==============================================================================
--- branches/feng-authnotify/src/bin/auth/main.cc (original)
+++ branches/feng-authnotify/src/bin/auth/main.cc Wed May 26 08:01:55 2010
@@ -160,16 +160,16 @@
Name name(name_buffer);
Session tmp_session_with_xfr;
tmp_session_with_xfr.establish();
- tmp_session_with_xfr.subscribe("Ben", "*");
+ tmp_session_with_xfr.subscribe("Ben");
const string remote_ip_address = sender.address().to_string();
ElementPtr notify_command = Element::createFromString("{\"command\": [\"notify\", {\"zone_name\" : \""
+ name.toText()
+ "\", \"master_ip\" : \""
+ remote_ip_address
+ "\"}]}");
- tmp_session_with_xfr.group_sendmsg(notify_command, "Xfrin");
+ unsigned int seq = tmp_session_with_xfr.group_sendmsg(notify_command, "Xfrin");
ElementPtr env, answer;
- tmp_session_with_xfr.group_recvmsg(env, answer, false);
+ tmp_session_with_xfr.group_recvmsg(env, answer, false, seq);
cerr << "before parse answer \n";
int rcode;
ElementPtr err = parseAnswer(rcode, answer);
More information about the bind10-changes
mailing list