wirelessinfo.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 86 行

HH
86
字号
#ifndef CLICK_WIRELESSINFO_HH#define CLICK_WIRELESSINFO_HH#include <click/element.hh>#include <click/ipaddress.hh>#include <click/etheraddress.hh>#include <click/bighashmap.hh>#include <click/glue.hh>CLICK_DECLS/*=cWirelessInfo([I<keywords CHANNEL, SSID, BSSID, INTERVAL])=s Wifi, Wireless AccessPoint, Wireless Station, informationTracks 802.11 configuration information (ssid, etc).=d Tracks 80.211 configuration. Similar to what you can specify with 'iwconfig' in linux. Does not process packets.Keyword arguments are:=over 8=item CHANNELArgument is an integer for what channel this configuration is operating on.=item SSIDArgument is a string.=item BSSIDArgument is an Ethernet Address. =item INTERVALBeacon interval for access points, in milliseconds.=back =h ssid read/writeSame as 'SSID'.=h channel read/writeSame as 'CHANNEL'.=h bssid read/writeSame as 'BSSID'.=h interval read/writeSame as 'INTERVAL'.*/class WirelessInfo : public Element { public:    WirelessInfo();  ~WirelessInfo();    const char *class_name() const		{ return "WirelessInfo"; }  int configure(Vector<String> &, ErrorHandler *);  void add_handlers();    static String read_param(Element *, void *);  static int write_param(const String &in_s, Element *, void *, ErrorHandler *);  void reset();  String _ssid;  EtherAddress _bssid;  int _channel;  int _interval;  bool _wep;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?