The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cma.AssimCclasses.pyNetAddr Class Reference
Inheritance diagram for cma.AssimCclasses.pyNetAddr:
Collaboration diagram for cma.AssimCclasses.pyNetAddr:

Public Member Functions

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

Detailed Description

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

Definition at line 633 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 637 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 763 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.__hash__ (   self)

Definition at line 772 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.__repr__ (   self)

Definition at line 752 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.addrlen (   self)

Definition at line 723 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.addrtype (   self)

Definition at line 716 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.isanyaddr (   self)

Definition at line 737 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.islocal (   self)

Definition at line 730 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

def cma.AssimCclasses.pyNetAddr.port (   self)

Definition at line 702 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

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

Definition at line 709 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.

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

Here is the caller graph for this function:

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

Definition at line 744 of file AssimCclasses.py.

References cma.AssimCclasses.pyAssimObj._Cstruct.


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