Passing a element declaration to an elementclass as parameter
[email protected] Tue, 19 Jun 2012 15:56:53 +0200
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <[email protected]> |
Hello,
let's have a look on the following example:
####################
b :: Tee(1);
elementclass foo {
$param1 |
input[0] -> $param1 -> [0]output;
}
Idle() -> a::foo(b) -> Discard;
####################
Is a construction like this possible in click? I want to declare an instance of the element Tee which is passed to an elementclass as configuration parameter and that can be used inside this elementclass.
If I use an element with no inputs and outputs instead of Tee, it is possible to pass this declared name to other elementclasses. But which possibilities do I have with an element including inputs and outputs?
Thanks,
Thomas
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de