Hello:
I am using windows, and I want to know if there is an option (function), to know if there is data in the in-buffer socket of a connection; so I can call the fpRecv funtion to read the data in the in-buffer.
If I call fpRecv, the program halts, wainting for information to reach the program. But I want to do some thing else in a loop, while wainting for data.
I found something like fpSelect() in the forum, but that function is not recognized in sockets unit, and I do not find any documentation for that:
if(fpSelect(FSocket + 1,@RTFD,nil,nil,@Timeout) > 0) then
begin
Len := fpRecv(FSocket,@Bytes_In,256,0);
end;
By the other hand, I have read something like "ioctl", but with no examples to handle the same goal.
thank you.