[Click] click Digest, Vol 85, Issue 7
Panos Μatzakos
magic_pan86 at yahoo.gr
Fri Jul 23 13:34:12 EDT 2010
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, ο/η click-request at pdos.csail.mit.edu <click-request at pdos.csail.mit.edu> έγραψε:
Από: click-request at pdos.csail.mit.edu <click-request at pdos.csail.mit.edu>
Θέμα: click Digest, Vol 85, Issue 7
Προς: click at pdos.csail.mit.edu
Ημερομηνία: Δευτέρα, 12 Ιούλιος 2010, 19:00
Send click mailing list submissions to
click at amsterdam.lcs.mit.edu
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
click-request at amsterdam.lcs.mit.edu
You can reach the person managing the list at
click-owner at amsterdam.lcs.mit.edu
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 <magic_pan86 at yahoo.gr>
Subject: [Click] access read handlers
To: click at pdos.csail.mit.edu
Message-ID: <179095.2899.qm at web27202.mail.ukl.yahoo.com>
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 <rchertov at cs.ucsb.edu>
Subject: Re: [Click] access read handlers
To: click at pdos.csail.mit.edu
Message-ID: <4C39F321.2030207 at cs.ucsb.edu>
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
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
------------------------------
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
End of click Digest, Vol 85, Issue 7
************************************
More information about the click
mailing list