[svn] commit: r139 - in /experiments/jelte-configuration: data.cc data.h

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Oct 28 21:54:46 UTC 2009


Author: mgraff
Date: Wed Oct 28 21:54:46 2009
New Revision: 139

Log:
style

Modified:
    experiments/jelte-configuration/data.cc
    experiments/jelte-configuration/data.h

Modified: experiments/jelte-configuration/data.cc
==============================================================================
--- experiments/jelte-configuration/data.cc (original)
+++ experiments/jelte-configuration/data.cc Wed Oct 28 21:54:46 2009
@@ -491,12 +491,26 @@
     }
 }
 
+const unsigned int PROTOCOL_VERSION = 0x536b616e;
+
+const unsigned char ITEM_DATA = 0x01;
+const unsigned char ITEM_HASH = 0x02;
+const unsigned char ITEM_LIST = 0x03;
+const unsigned char ITEM_NULL = 0x04;
+const unsigned char ITEM_MASK = 0x0f;
+
+const unsigned char ITEM_LENGTH_32   = 0x00;
+const unsigned char ITEM_LENGTH_16   = 0x10;
+const unsigned char ITEM_LENGTH_8    = 0x20;
+const unsigned char ITEM_LENGTH_MASK = 0x30;
+
 //
 // Encode into wire format.
 //
 void
-to_wire(std::ostream &ss)
-{
+MapElement::to_wire(std::ostream& ss)
+{
+    std::stringstream ss;
 }
 
 bool

Modified: experiments/jelte-configuration/data.h
==============================================================================
--- experiments/jelte-configuration/data.h (original)
+++ experiments/jelte-configuration/data.h Wed Oct 28 21:54:46 2009
@@ -213,7 +213,7 @@
         //
         // Encode into the CC wire format.
         //
-	void to_wire(std::ostream &ss);
+	void to_wire(std::ostream& ss);
     };
 
 } }




More information about the bind10-changes mailing list