Headers.h 492 B

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