- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
template<class THTTPServerSettings_>
class TSettingsApplyer: public TAbstractSettingsApplyer
{
private:
enum
{
RESPONSE_BUFFER_SIZE=THTTPServerSettings_::ResponseBufferSize>THTTPServerSettings_::FullBufferedResponseSize?THTTPServerSettings_::ResponseBufferSize:THTTPServerSettings_::FullBufferedResponseSize
};
char _requestBuffer[THTTPServerSettings_::RequestBufferSize];
char _responseBuffer[RESPONSE_BUFFER_SIZE];
char _requestHeaderBuffer[THTTPServerSettings_::RequestHeaderBufferSize];
char _responseHeaderBuffer[THTTPServerSettings_::ResponseHeaderBufferSize];
public:
TSettingsApplyer(void);
virtual void* const GetRequestBuffer(void) const;
virtual void* const GetRequestHeaderBuffer(void) const;
virtual void* const GetResponseBuffer(void) const;
virtual void* const GetResponseHeaderBuffer(void) const;
virtual const size_t GetPort(void) const;
virtual const size_t GetRequestBufferSize(void) const;
virtual const size_t GetRequestHeaderBufferSize(void) const;
virtual const size_t GetResponseBufferSize(void) const;
virtual const size_t GetResponseHeaderBufferSize(void) const;
};
//...
template<class TSettings>
THTTPServer( TSettings settings ):
_SettingsApplyer(*(::new TSettingsApplyer< TSettings >)),
Говногость 16.04.2012 17:26 # 0
JavaGovno 16.04.2012 17:41 # 0