Hello and thanks for the answer. Well, now i know better what i need to do and i am not sure if handlers is what i need. I try to implement a mac protocol (802.11 csma/ca) and i am using the following flowgraph:
Timedsource -> Queue -> mysocket -> Discard where mysocket is the main element of my router which implements the algorithm of the protocol and sends packets to PHY through sockets. So, i want to be able to view from inside of mysocket when the Queue gets empty. Is there a way to do that? Thank you --- Στις Δευτ., 12/07/10, ο/η [email protected] <[email protected]> έγραψε: Από: [email protected] <[email protected]> Θέμα: click Digest, Vol 85, Issue 7 Προς: [email protected] Ημερομηνία: Δευτέρα, 12 Ιούλιος 2010, 19:00 Send click mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://amsterdam.lcs.mit.edu/mailman/listinfo/click or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of click digest..." Today's Topics: 1. access read handlers (Panos ?atzakos) 2. Re: access read handlers (Roman Chertov) ---------------------------------------------------------------------- Message: 1 Date: Sun, 11 Jul 2010 16:24:04 +0000 (GMT) From: Panos ?atzakos <[email protected]> Subject: [Click] access read handlers To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=iso-8859-7 Hello, i am quite confused with how to access a read handler from my configuration. Specifically i am using the following router: Timedsource -> Queue -> myelement -> Discard and i want to access the read handlers of Queue element by calling the read_handler(Element *e, void *thunk)? function. So my question is where i can call this function from (to be able to access the drops handler for example while my router is running)? and in which way. ?????????????????????????????????????????????????????????????????????????????????????? Thank you ------------------------------ Message: 2 Date: Sun, 11 Jul 2010 09:36:49 -0700 From: Roman Chertov <[email protected]> Subject: Re: [Click] access read handlers To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-7; format=flowed On 07/11/2010 09:24 AM, Panos ?atzakos wrote: > Hello, i am quite confused with how to access a read handler from my > configuration. Specifically i am using the following router: > > Timedsource -> Queue -> myelement -> Discard To access the handler you do something like this. Timedsource -> q::Queue -> myelement -> Discard click my_config -h q.drops This has more details about this. http://read.cs.ucla.edu/click/docs/userdriver > > and i want to access the read handlers of Queue element by calling > the read_handler(Element *e, void *thunk) function. So my question Are you trying to make an element or modify one to do this? The example above shows the typical way one would access the handlers. Roman > is where i can call this function from (to be able to access the > drops handler for example while my router is running) and in which > way. Thank you > > > _______________________________________________ click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > ------------------------------ _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click End of click Digest, Vol 85, Issue 7 ************************************ _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
