8/9/2023 0 Comments Request queue meaningMore than one call can be required to retrieve a given request. The specified request has already been completely retrieved in this case, the value pointed to by pBytesReceived is not meaningful, and pRequestBuffer should not be examined.Ī system error code defined in WinError.h. Call the function again with a large enough buffer to retrieve all data. The buffer size required to read the remaining part of the entity body is returned in the pBytesReceived parameter if this is non- NULL and if the call is synchronous. The value of RequestBufferLength is greater than or equal to the size of the request header received, but is not as large as the combined size of the request structure and entity body. The pRequestBuffer parameter must point to a valid memory buffer with a memory alignment equal or greater to the memory alignment requirement for an HTTP_REQUEST structure. One or more of the supplied parameters points to an invalid or unaligned memory buffer. One or more of the supplied parameters is in an unusable form. If the function fails, the return value is one of the following error codes. If the function is being used asynchronously, a return value of ERROR_IO_PENDING indicates that the next request is not yet ready and will be retrieved later through normal overlapped I/O completion mechanisms. If the function succeeds, the return value is NO_ERROR. OVERLAPPED structures for synchronization, see Synchronization and Overlapped Input and Output. GetOverlappedResult or I/O completion ports to determine when the operation is completed. OVERLAPPED structure for synchronous calls, set it to NULL.Ī synchronous call blocks until a request has arrived in the specified queue and some or all of it has been retrieved, whereas an asynchronous call immediately returns ERROR_IO_PENDING and the calling application then uses Otherwise, when pOverlapped is set to NULL, pBytesReceived must contain a valid memory address, and not be set to NULL.įor asynchronous calls, set pOverlapped to point to an When making an asynchronous call using pOverlapped, set pBytesReceived to NULL. A pointer to a variable that receives the size, in bytes, of the entity body, or of the remaining part of the entity body. Size, in bytes, of the pRequestBuffer buffer. HTTP_REQUEST.RequestId contains the identifier for this HTTP request, which the application can use in subsequent calls HttpReceiveRequestEntityBody, HTTP_REQUEST structure and entity body for the HTTP request. The pEntit圜hunks member of theĪ pointer to a buffer into which the function copies an HTTP_REQUEST structure points to the entity body.Īll of the entity bodies are copied along with the request headers. The available entity body is copied along with the request headers. Only the request headers are retrieved the entity body is not copied. HTTP_REQUEST structure pointed to by pRequestBuffer.Ī parameter that can be one of the following values. HttpReceiveRequestEntityBody can be called with RequestID set to the value returned in the RequestId member of the Then, if more than one call is required to retrieve the entire request, On the first call to retrieve a request, this parameter should be HTTP_NULL_ID. Windows Server 2003 with SP1 and Windows XP with SP2: The handle to the request queue is created by the HttpCreateHttpHandle function. A request queue is created and its handle returned by a call to the Syntax HTTPAPI_LINKAGE ULONG HttpReceiveHttpRequest(Ī handle to the request queue from which to retrieve the next available request. I'm not convinced it is, but I'd like to get all of your opinions on this.Context - this is regarding a small HVAC comp.HttpReceiveHttpRequest function retrieves the next available HTTP request from the specified request queue either synchronously or asynchronously. Hey all,I got into a conversation recently regarding a small company and discussing if a non-ISP provided Firewall was really required.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |