aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/jnetlib/headers.h
blob: 9412ac74e4b0f6f9eafeae73ef53d4d18da52c76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};