有个任务。服务器接受客户的提请。然后在IIS发送原始数据的时候对数据进行分析,然后对不合法的要求过滤,我想问一下,在OnSendRawData()函数中的参数的具体意义,以及这些参数的每一个属性是什么意思。请达人指教。
MSDN是干啥的?
----------------------
MFC Library Reference
CHttpFilter::OnReadRawData
This member function is called by the framework to allow the application to see the raw data.
[CODE]virtual DWORD OnReadRawData(
CHttpFilterContext* pfc,
PHTTP_FILTER_RAW_DATA pRawData
); [/CODE]
Parameters
pfc
A CHttpFilterContext object, which contains context information. The CHttpFilterContext object can be used by the filter to associate any context information with the HTTP request.
pRawData
A pointer to an HTTP_FILTER_RAW_DATA structure.
Return Value
One of the following notification types:
SF_STATUS_REQ_FINISHED
The filter has handled the HTTP request. The server should disconnect the session.
SF_STATUS_REQ_FINISHED_KEEP_CONN
Same as SF_STATUS_REQ_FINISHED except the server should keep the TCP session open if the option was negotiated.
SF_STATUS_REQ_NEXT_NOTIFICATION
The next filter in the notification chain should be called.
SF_STATUS_REQ_HANDLED_NOTIFICATION
This filter handled the notification. No other handlers should be called for this particular notification.
SF_STATUS_REQ_ERROR
An error occurred. The server should use the Win32 API SetLastError to indicate the error to the client.
SF_STATUS_REQ_READ_NEXT
The filter is an opaque stream filter; Negotiate the session parameters. Only valid for raw read notification.
If unsuccessful, the notification type SF_STATUS_REQ_ERROR should be returned. In this case, the server should use the Windows function SetLastError and indicate the error to the client.
Remarks
The data returned will contain both headers and data.
Override this member function to process raw data differently.The default implementation does nothing.
遇到问题查询MSDN,baidu一直是我的习惯,然后才会问问题。
或许我表达不清楚,我想知道lpInData的数据是按照什么格式?
我需要知道哪些只是,然后才可以很好的解析这些数据。
或许这些数据有一些重要信息,而不是完全是数据部分。
我就是对上面几个问题的疑问。