Hello,
I have discovered Synapse this week, and I am very happy because I have
a project to translate from Windows to Linux.
My program under Delphi is a program to transfer data via UDP socket
from a CCD camera to my computer.
The protocol is fixed, and I can't change it, I ha ve to adapt me to
this protocol.
I have replace about 70% of my socket instructions with Synapse, but I
have a problem with the select function.
As I work with UDP in non-blocking mode (to have the maximum speed), I
have a thread wich scan the UDP socket to know if data are received.
For that purpose I use:
ReceiveStatus:TFDSet;
begin
ReceiveStatus.fd_count:=1;
ReceiveStatus.fd_array[0]:=UDPComponent.Sockethandle;
while not Terminated do
begin
if select(0,@ReceiveStatus,Nil,Nil,Nil)>0 then
........
end;
But I am searching now to do the same thing with Synapse, I have try:
while not Terminated do
begin
UDPBlockSocket.CanRead(0) then
........
end;
But the program use about 95% of the processor, and I have to reboot
Windows.
Have you an idea of the instruction that can replace the select() function?
Synapse is really very powerfull, and simple to use, and as I am very
happy, I am going to make a donation to Lukas Gebauer for his work.
Best regards
--
Michel Meunier
Web: www.etoiles-a-bleau.fr
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public