2chを内蔵したウェブサーバ ょぅι゛ょ
■ このスレッドは過去ログ倉庫に格納されています
0070デフォルトの名無しさん
NGNGかちゅ等で串ささないと書き込めないのは、recvに失敗しているのが原因かと…
YMain.cppファイル
bool YMain::Execute()
{
...省略...
//D
int conectLength = 0;
//長さ指定があれば、その長さ分読み込む.
if ( HeaderParser.ContentLength.IsEnable() )
{
conectLength = HeaderParser.ContentLength.getValue();
const int conectStart = secutiveReturnCode.getConectStart();
//実は既に読み込んでいないかチェック.
if (readByte < conectLength+conectStart)
{
StreamCheckerForLength scfl( conectLength+conectStart-readByte );
readByte += rsu.ReadBuffer(buffer+readByte , THREAD_WORK_AREA - readByte ,&scfl);
}
}
...省略...
}
■ このスレッドは過去ログ倉庫に格納されています