TTCPBlockSocket cannot receive data from MySQL client lazarus / 16-Databases ---------------------------------------------------------------------- myisjwj · 2023-07-20 02:36 A port service program with the following code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure getdata();var  serTCP,conTCP:TTCPBlockSocket;  Buffer: array[0..1023] of byte;  BytesReceived: integer;begin  serTCP:=TTCPBlockSocket.Create;  serTCP.CloseSocket;  serTCP.bind('0.0.0.0','1500');  serTCP.listen;  repeat    if serTCP.canread(1000) then    begin      conTCP:=TTCPBlockSocket.Create;      conTCP.Socket := serTCP.accept;    OutputDebugString(pchar(inttostr(conTCP.lasterror)));      FillByte(buffer, SizeOf(buffer), 0);      while conTCP.LastError=0 do     begin         BytesReceived := conTCP.RecvBuffer(@Buffer, SizeOf(Buffer));         if BytesReceived>0 then         begin         conTCP.SendString('Hello from server!');           OutputDebugString(PChar(@Buffer[0]));           FillByte(buffer, SizeOf(buffer), 0);         end;      end;      conTCP.CloseSocket;    conTCP.Free;    end;  until false;end; Accessing with MySQL client, unable to receive any data. But accessing TCP service ports such as NetAssist.exe using MySQL clients can result in: [2023 07 19 22:09:05.142] # Client 127.0.0.1:2206 gets online Such data. May I ask why the program I wrote cannot receive data. Thank you!