Henning
11/30/2011 12:42:00 AM
"ralph" <nt_consulting64@yahoo.net> skrev i meddelandet
news:flrad71its1gsfvf64aosmphsgkecntgb0@4ax.com...
> On Tue, 29 Nov 2011 23:22:13 +0100, "Henning"
> <computer_hero@coldmail.com> wrote:
>
>>Hi grp,
>>
>>I have tried to find some info, but can't find/understand.
>>
>>I have an app that receives packets thru a Socket_OnDataArrival.
>>This calls a Sub that handles the packets.
>>
>>What happens if one or more packets are received while handling the first
>>one?
>>What happens when the first packet is done, and the Sub Exits?
>>
>>I would appreciate if someone could clarify this. My only place to test is
>>in the running sharp app. handling alarms... Missing any packet would be a
>>problem.
>>
>>TIA /Henning
>
>
> Assuming that is an Event - Events are queued. So when the code
> defined for the Event is finished, VB will handle the next Event in
> the queue. This will not necessarily be a Data Arrival event, but
> eventually all will be handled.
>
> You didn't say which control, so I'm assuming it is buffered.
>
> If it is a Callback, then you might consider simply prioritizing the
> data and launching your own events, exiting the sub as soon as
> possible. (Rare)
>
> It is normally very straight-forward and simple, but service levels
> and requirements may need additional attention.
>
> More information would be nice.
>
> -ralph
Hi Ralph,
Yes it is an Event, because it is a service, I'm using CSocketMaster,
winsock only works on a form afaik.
So, when the current event is finished, I will, if there has been another
data receive, a new event-trigg. If that is how it works, I will not have at
least this problem...
Thanx!
/Henning