Sections
Sub-Sections
Last Change
Annotate
Revision Log
Download
Plain Text
Original Format
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

root/wirelessheatmap/trunk/ap.py

Revision 53, 0.7 kB (checked in by gak, 21 months ago)
  • Property svn:keywords set to Id Revision
Line 
1class AccessPoint(object):
2
3    def __init__(self, *bits):
4        bits = map(lambda a: a.strip(), bits)
5        self.bssid = bits[0]
6        self.first_seen = bits[1]
7        self.last_seen = bits[2]
8        self.channel = int(bits[3])
9        self.speed = int(bits[4])
10        self.privacy = bits[5]
11        self.cipher = bits[6]
12        self.auth = bits[7]
13        self.power = float(bits[8])
14        self.beacons = int(bits[9])
15        self.iv = bits[10]
16        self.ip = bits[11]
17        self.id_length = int(bits[12])
18        self.essid = bits[13]
19        self.key = bits[14]
20
21    def __hash__(self):
22        return hash(self.bssid)
23
24    def __repr__(self):
25        return self.essid
Note: See TracBrowser for help on using the browser.