Re: [twsocket] broadcast sender address

2006-03-06 Thread Robert Van Gemert
a bit more on this...

ReceiveFrom seems to block and enter a high cpu load state if called 
repeatly. I have a server that broadcasts regulary (200 msec rate). The 
client application uses the OnDataAvailable event to call ReceiveFrom. This 
application hangs in the ReceiveFrom function if it gets regular 
OnDataAvailable events. If ReceiveFrom is replaced with Receive the fault 
clears.

I have solved my problem by other means, this is just for info only

-rvg



- Original Message - 
From: "Robert Van Gemert" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Saturday, March 04, 2006 7:55 PM
Subject: Re: [twsocket] broadcast sender address


> Wilfried ,
>
> Thanks, I am calling ReceiveFrom within OnDataAvailable. When I use 
> ReceiveFrom my application takes 90% of the cpu and remains in this state. 
> If i use Receive my aplication works correctly. I presume ReceiveFrom 
> should not block but in my case it does.
>
> -rvg
>
>
> - Original Message - 
> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
> To: "ICS support mailing" 
> Sent: Saturday, March 04, 2006 6:58 PM
> Subject: Re: [twsocket] broadcast sender address
>
>
>> Hello Robert,
>>
>>> RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen).
>>> This function hangs the pc.
>>
>> You do call it from inside OnDataAvailable event ?
>>
>> --- Rgds, Wilfried [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> http://www.mestdagh.biz
>>
>> -- 
>> 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


Re: [twsocket] broadcast sender address

2006-03-04 Thread Wilfried Mestdagh
Hello Robert,

I have no idea. Can you try a very simple new project to demonstrate the
behaviour, and also eventually try exacly the same project in D7 ? Just
to be sure it is nothing wrong with Delphi 2005.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Saturday, March 4, 2006, 09:55, Robert Van Gemert wrote:

> Wilfried ,

> Thanks, I am calling ReceiveFrom within OnDataAvailable. When I use 
> ReceiveFrom my application takes 90% of the cpu and remains in this state.
> If i use Receive my aplication works correctly. I presume ReceiveFrom should
> not block but in my case it does.

> -rvg


> - Original Message - 
> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
> To: "ICS support mailing" 
> Sent: Saturday, March 04, 2006 6:58 PM
> Subject: Re: [twsocket] broadcast sender address


>> Hello Robert,
>>
>>> RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen).
>>> This function hangs the pc.
>>
>> You do call it from inside OnDataAvailable event ?
>>
>> --- Rgds, Wilfried [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> http://www.mestdagh.biz
>>
>> -- 
>> 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


Re: [twsocket] broadcast sender address

2006-03-04 Thread Robert Van Gemert
Wilfried ,

Thanks, I am calling ReceiveFrom within OnDataAvailable. When I use 
ReceiveFrom my application takes 90% of the cpu and remains in this state. 
If i use Receive my aplication works correctly. I presume ReceiveFrom should 
not block but in my case it does.

-rvg


- Original Message - 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Saturday, March 04, 2006 6:58 PM
Subject: Re: [twsocket] broadcast sender address


> Hello Robert,
>
>> RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen).
>> This function hangs the pc.
>
> You do call it from inside OnDataAvailable event ?
>
> --- Rgds, Wilfried [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
> http://www.mestdagh.biz
>
> -- 
> 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


Re: [twsocket] broadcast sender address

2006-03-03 Thread Wilfried Mestdagh
Hello Robert,

> RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen).
> This function hangs the pc.

You do call it from inside OnDataAvailable event ?

--- Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
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


[twsocket] broadcast sender address

2006-03-03 Thread Robert Van Gemert
Hi,

I am using delphi 2005, wsocket v5.15 on xp to receive broadcasts from a 
server. The server broadcasts on port 5006 to 255.255.255.255. The client pc 
receives the broadcasts by listening to 0.0.0.0. All works ok using using 
RxBroadcastSocket.Receive(@Buffer, SizeOf(Buffer). I now wish to determine 
the sender address so I tried using RxBroadcastSocket.ReceiveFrom(@Buffer, 
SizeOf(Buffer), src, srcLen). This function hangs the pc. Any suggestions or 
work arounds?

-rvg



-- 
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