Sorry, it was my fault, the UDP datagrams are sent with a TWSocket, not a 
TWSocketServer.

TWSocket has a property: FlushTimeOut, which is set to 60, but in the help file 
I didn't find anything about it. What does this property do?  

The listening TWSocket DataAvailable method is the following (partly from the 
example project bound to ICS):

procedure Tmainform.udplistenDataAvailable(Sender: TObject; Error: Word);
var Len    : Integer;
    Src    : TSockAddrIn;
    SrcLen : Integer;
begin
 SrcLen := SizeOf(Src);
 Len    := udplisten.ReceiveFrom(@incomingbuff, SizeOf(incomingbuff), Src, 
SrcLen);
 incomingsize:=len;
 if Len >= 0 then
    begin
     if (FServerAddr.S_addr = INADDR_ANY)or(FServerAddr.S_addr = 
Src.Sin_addr.S_addr) then
        begin
         
workwithincomingdata(inet_ntoa(Src.sin_addr),ntohs(Src.sin_port),incomingbuff,len);
        end;
    end;
end;

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilfried Mestdagh
Sent: Thursday, March 17, 2005 9:12 PM
To: ICS support mailing
Subject: Re: [twsocket] UDP datagramreceive periodically freezes for seconds

Hello Udvari,

TWSocketServer does not handle UDP, only TCP.

---
Rgds, Wilfried
http://www.mestdagh.biz

Thursday, March 17, 2005, 16:28, Udvari András László wrote:

> Hi List,

> I wrote a little client-server application, which measures UDP
> datagram transfer speed. The server is using TWSocketServer, and sends
> a 1500 byte length UDP datagram in every half seconds. The number of
> datagrams to be sent is a parameter, tipically some 100, below 1000.
> The client side receive these packets measures the speed
> (bytes/second) and the counts the missing or lost packets (every
> packet has an incremental unique id).

> But on the client side there is a strange behaviour: in about every
> minute no datagram is coming for some seconds, and after that all of
> them coming in one bunch, like if emptying some kind of buffer. After
> that everything returns normal for about another 1 minute. 

> Is it a normal behaviour, or am I doing something wrong? On the
> server side everything seems to be OK, according to log file every
> packet is sent with correct timing.

> Thanks for your help:
> Andras

> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to