The Assimilation Project  based on Assimilation version 1.1.2.1454725746
cma.AssimCclasses.pyNetAddr Class Reference
Inheritance diagram for cma.AssimCclasses.pyNetAddr:
Collaboration diagram for cma.AssimCclasses.pyNetAddr:

Public Member Functions

def __init__
 
def port (self)
 
def setport (self, port)
 
def addrtype (self)
 
def addrlen (self)
 
def islocal (self)
 
def isanyaddr (self)
 
def toIPv6
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
- Public Member Functions inherited from cma.AssimCclasses.pyAssimObj
def __init__
 
def cclassname (self)
 
def __str__ (self)
 
def __del__ (self)
 
def refcount (self)
 

Detailed Description

This class represents the Python version of our C-class @ref NetAddr
- represented by the struct _NetAddr.

Definition at line 833 of file AssimCclasses.py.

Constructor & Destructor Documentation

def cma.AssimCclasses.pyNetAddr.__init__ (   self,
  addrstring,
  port = None,
  Cstruct = None 
)
This constructor needs a list of integers of the right length as its first argument.
The length of the list determines the type of address generated.
 4 bytes == ipv4
 6 bytes == MAC address
 8 bytes == MAC address
 16 bytes == ipv6 address
This is slightly sleazy but it should work for the forseeable future.

Definition at line 837 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, cma.AssimCclasses.pyNetAddr._init_from_binary(), netaddr_dns_new(), netaddr_ipv4_new(), netaddr_ipv6_new(), netaddr_mac48_new(), netaddr_mac64_new(), _AddrFrame.setport, _NetAddr.setport, and cma.AssimCclasses.pyNetAddr.setport().

Here is the call graph for this function:

Member Function Documentation

def cma.AssimCclasses.pyNetAddr.__eq__ (   self,
  other 
)

Definition at line 965 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.__hash__ (   self)

Definition at line 974 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.__repr__ (   self)

Definition at line 953 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.addrlen (   self)

Definition at line 924 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.addrtype (   self)

Definition at line 917 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.isanyaddr (   self)
Return True if this address is the 'ANY' address

Definition at line 938 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.islocal (   self)

Definition at line 931 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.port (   self)

Definition at line 903 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:

def cma.AssimCclasses.pyNetAddr.setport (   self,
  port 
)

Definition at line 910 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Referenced by cma.AssimCclasses.pyNetAddr.__init__().

Here is the call graph for this function:

Here is the caller graph for this function:

def cma.AssimCclasses.pyNetAddr.toIPv6 (   self,
  port = None 
)

Definition at line 945 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct, and cma.AssimCclasses.not_this_exact_type().

Here is the call graph for this function:


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