The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.discoverylistener.DiscoveryListener Class Reference
Inheritance diagram for cma.discoverylistener.DiscoveryListener:
Collaboration diagram for cma.discoverylistener.DiscoveryListener:

Public Member Functions

def __init__ (self, config, packetio, store, log, debug)
 
def priority (cls)
 
def desiredpackets (cls)
 
def processpkt (self, drone, srcaddr, json, discoverychanged)
 

Data Fields

 packetio
 
 store
 
 log
 
 debug
 
 config
 

Static Public Attributes

int PRI_CORE = 0
 
int PRI_OPTION = 1
 
int PRI_CONTRIB = 2
 
int PRI_LIMIT = PRI_CONTRIB+1
 
 prio = PRI_CONTRIB
 
 wantedpackets = None
 

Detailed Description

Class for listening to discovery packets
We support three different categories/priorities of discovery actions
as documented below:

Definition at line 44 of file discoverylistener.py.

Constructor & Destructor Documentation

def cma.discoverylistener.DiscoveryListener.__init__ (   self,
  config,
  packetio,
  store,
  log,
  debug 
)

Definition at line 58 of file discoverylistener.py.

Member Function Documentation

def cma.discoverylistener.DiscoveryListener.processpkt (   self,
  drone,
  srcaddr,
  json,
  discoverychanged 
)

Definition at line 76 of file discoverylistener.py.

Field Documentation

cma.discoverylistener.DiscoveryListener.log

Definition at line 62 of file discoverylistener.py.

cma.discoverylistener.DiscoveryListener.packetio

Definition at line 60 of file discoverylistener.py.

int cma.discoverylistener.DiscoveryListener.PRI_CONTRIB = 2
static

Definition at line 52 of file discoverylistener.py.

int cma.discoverylistener.DiscoveryListener.PRI_CORE = 0
static

Definition at line 50 of file discoverylistener.py.

int cma.discoverylistener.DiscoveryListener.PRI_LIMIT = PRI_CONTRIB+1
static

Definition at line 53 of file discoverylistener.py.

int cma.discoverylistener.DiscoveryListener.PRI_OPTION = 1
static

Definition at line 51 of file discoverylistener.py.

cma.discoverylistener.DiscoveryListener.prio = PRI_CONTRIB
static
cma.discoverylistener.DiscoveryListener.wantedpackets = None
static

The documentation for this class was generated from the following file: