[Click] open file

pieter wuytens pieter_wuytens at hotmail.com
Tue Mar 25 12:36:07 EDT 2008


Hi all,

i want to open an file in click it is the file /sys/class/net/ath1/wireless/link and put the integer in that file in click variabele.

i want to do this in my own element

this is the code and psuedo code

void
MyWifi::push(int, Packet *p)
{


int _count=the value from /sys/class/net/ath1/wireless/link
//how should i write this?

if (_countfind("wissel");
int success = HandlerCall::call_write(sw1, "switch", "1");
success = HandlerCall::call_write(mw, "signal", String(_count));
}
output(0).push(p);
}

thx in advance
Pieter Wuytens

_________________________________________________________________
Jouw nieuws en entertainment, vind je op MSN.nl!
http://nl.msn.com/


More information about the click mailing list