mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
22
Src/Components/wac_network/Headers.h
Normal file
22
Src/Components/wac_network/Headers.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef NULLSOFT_WAC_NETWORK_HEADERS_H
|
||||
#define NULLSOFT_WAC_NETWORK_HEADERS_H
|
||||
|
||||
// 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;
|
||||
};
|
||||
|
||||
#endif // !NULLSOFT_WAC_NETWORK_HEADERS_H
|
Reference in New Issue
Block a user