Browse Source

[trac499] Initial entrypoint logic for handling TC queries

Scott Mann 14 years ago
parent
commit
8a18de7902
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/lib/asiolink/asiolink.cc

+ 5 - 0
src/lib/asiolink/asiolink.cc

@@ -417,6 +417,11 @@ private:
     // returns true if we are done
     // returns true if we are done
     // returns false if we are not done
     // returns false if we are not done
     bool handleRecursiveAnswer(const Message& incoming) {
     bool handleRecursiveAnswer(const Message& incoming) {
+        //temporary code to grab TC enabled responses
+        if(incoming.getHeaderFlag(Message::HEADERFLAG_TC)) {
+            //TC (truncated) bit is set, which means we need to use TCP
+            //  need to check if TCP conn already open (RFC 5966)
+        }
         if (incoming.getRRCount(Message::SECTION_ANSWER) > 0) {
         if (incoming.getRRCount(Message::SECTION_ANSWER) > 0) {
             dlog("Got final result, copying answer.");
             dlog("Got final result, copying answer.");
             copyAnswerMessage(incoming, answer_message_);
             copyAnswerMessage(incoming, answer_message_);