aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/jnetlib/headers.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/replicant/jnetlib/headers.h')
-rw-r--r--Src/replicant/jnetlib/headers.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Src/replicant/jnetlib/headers.h b/Src/replicant/jnetlib/headers.h
new file mode 100644
index 00000000..9412ac74
--- /dev/null
+++ b/Src/replicant/jnetlib/headers.h
@@ -0,0 +1,20 @@
+#pragma once
+
+
+// TODO: benski> change this to use a smarter data structure.
+// this initial implementation is known to work, however
+class JNL_Headers
+{
+public:
+ JNL_Headers();
+ ~JNL_Headers();
+
+ const char *GetAllHeaders();
+ const char *GetHeader( const char *header_name );
+ int Add( const char *buf );
+ void Reset();
+
+private:
+ char *m_recvheaders;
+ size_t m_recvheaders_size;
+}; \ No newline at end of file