本文整理汇总了C++中DateBuffer::InexactUpdate方法的典型用法代码示例。如果您正苦于以下问题:C++ DateBuffer::InexactUpdate方法的具体用法?C++ DateBuffer::InexactUpdate怎么用?C++ DateBuffer::InexactUpdate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DateBuffer
的用法示例。
在下文中一共展示了DateBuffer::InexactUpdate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AppendDateField
void HTTPRequest::AppendDateField()
{
Assert(OSThread::GetCurrent() != NULL);
DateBuffer* theDateBuffer = OSThread::GetCurrent()->GetDateBuffer();
theDateBuffer->InexactUpdate(); // Update the date buffer to the current date & time
StrPtrLen theDate(theDateBuffer->GetDateBuffer(), DateBuffer::kDateBufferLen);
// Append date
this->AppendResponseHeader(httpDateHeader, &theDate);
}
示例2: AppendDateAndExpiresFields
void HTTPRequest::AppendDateAndExpiresFields()
{
Assert(OSThread::GetCurrent() != NULL);
DateBuffer* theDateBuffer = OSThread::GetCurrent()->GetDateBuffer();
theDateBuffer->InexactUpdate(); // Update the date buffer to the current date & time
StrPtrLen theDate(theDateBuffer->GetDateBuffer(), DateBuffer::kDateBufferLen);
// Append dates, and have this response expire immediately
this->AppendResponseHeader(httpDateHeader, &theDate);
this->AppendResponseHeader(httpExpiresHeader, &theDate);
}
示例3: AppendDateAndExpires
void RTSPRequestInterface::AppendDateAndExpires()
{
if (!fStandardHeadersWritten)
this->WriteStandardHeaders();
Assert(OSThread::GetCurrent() != NULL);
DateBuffer* theDateBuffer = OSThread::GetCurrent()->GetDateBuffer();
theDateBuffer->InexactUpdate(); // Update the date buffer to the current date & time
StrPtrLen theDate(theDateBuffer->GetDateBuffer(), DateBuffer::kDateBufferLen);
// Append dates, and have this response expire immediately
this->AppendHeader(qtssDateHeader, &theDate);
this->AppendHeader(qtssExpiresHeader, &theDate);
}