headers.h 403 B

1234567891011121314151617181920
  1. #pragma once
  2. // TODO: benski> change this to use a smarter data structure.
  3. // this initial implementation is known to work, however
  4. class JNL_Headers
  5. {
  6. public:
  7. JNL_Headers();
  8. ~JNL_Headers();
  9. const char *GetAllHeaders();
  10. const char *GetHeader( const char *header_name );
  11. int Add( const char *buf );
  12. void Reset();
  13. private:
  14. char *m_recvheaders;
  15. size_t m_recvheaders_size;
  16. };