Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delegation, more questions ..

1 view
Skip to first unread message

Megh Ranade

unread,
Jun 3, 2003, 3:04:03 AM6/3/03
to

Delegation appears to be a very useful feature: It can allow a programmer to
leave the 'core agent' alone & use threads in his/her embedded system code to
service requests. Anybody tried this?
How does one deal with 'Event Based' rather than Fixed Timout based
delegation? One option is to keep delegating a request (in small increments)
until THAT Event occurs. Another possibility is that we first delegate the
request with a IMPOSSIBLY LARGE Timeout & then when the Event occurs,
somehow 'RESCHEDULE' (decrease the timeout) of the the delegated request.
Perhaps this can be done simply by changing the timeout value in the
delegation 'Q' & then programmatically generating a ALARM signal. Wes,
Javier, Corey, others ..Would this work?
- Megh Ranade, Kenati Technologies


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Wes Hardaker

unread,
Jun 3, 2003, 8:03:14 PM6/3/03
to
>>>>> On Tue, 3 Jun 2003 12:18:07 +0530, Megh Ranade <me...@kenati.com> said:

Megh> Delegation appears to be a very useful feature: It can allow a
Megh> programmer to leave the 'core agent' alone & use threads in
Megh> his/her embedded system code to service requests. Anybody tried
Megh> this?

Warning: threads will almost certainly *not* work.

Megh> How does one deal with 'Event Based' rather than Fixed Timout
Megh> based delegation?

Typically, you'd register your sockets to watch using the
register_readfd function (for example).

Megh> One option is to keep delegating a request (in small increments)
Megh> until THAT Event occurs. Another possibility is that we first
Megh> delegate the request with a IMPOSSIBLY LARGE Timeout & then when
Megh> the Event occurs, somehow 'RESCHEDULE' (decrease the timeout) of
Megh> the the delegated request. Perhaps this can be done simply by
Megh> changing the timeout value in the delegation 'Q' & then
Megh> programmatically generating a ALARM signal. Wes, Javier, Corey,
Megh> others ..Would this work?

Do not use an alarm signal! I promise a mess will result!

You should just be able to mark the delegated flag in a request you
are processing as no longer delegated/delayed, and the agent will
automatically find it. Unless your situation is odd, this will likely
work without you needing to think about it (at least I designed it
that way).

--
Wes Hardaker
Network Associates Laboratories


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.

0 new messages