C++Builder相談室 Part21 (327レス)
1-

129: 2019/11/19(火)23:22 ID:oTHzii8i(2/2) AAS
>>128
ありがとうございます。
とりあえずこんな感じにしたらできました。

void __fastcall TForm1::IdTCPServerExecute(TIdContext *AContext)
{
 TIdBytes buf;

 if (!AContext->IOHandler->InputBufferIsEmpty()) {
  buf.Length = 0;
  while(1) {
   AContext->Connection->IOHandler->CheckForDataOnSource(100);
   if (!AContext->IOHandler->InputBufferIsEmpty()) {
    break;
   }
   AContext->Connection->IOHandler->ReadBytes(buf, -1, true);
  }
  RecvStr = TEncoding::UTF8->GetString(buf);
 }
}
1-
あと 198 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.018s