The Assimilation Project  based on Assimilation version 1.1.2.1454953989
cma.tests.cma_test.TestIO Class Reference

Public Member Functions

def __init__
 
def recvframesets (self)
 
def sendframesets (self, dest, fslist)
 
def sendreliablefs (self, dest, fslist)
 
def ackmessage (self, dest, fs)
 
def connactive
 
def closeconn (self, qid, dest)
 
def cleanio (self)
 
def getmaxpktsize (self)
 
def fileno (self)
 
def bindaddr (self, addr)
 
def mcastjoin (self, addr)
 
def setblockio (self, tf)
 
def dumppackets (self)
 

Static Public Member Functions

def shutdown_on_timeout (io)
 

Data Fields

 inframes
 
 packetswritten
 
 packetsread
 
 sleepatend
 
 index
 
 writecount
 
 config
 
 pipe_write
 
 atend
 
 readfails
 
 initpackets
 
 timeout
 
 pipe_read
 

Static Public Attributes

 mainloop = None
 

Detailed Description

A pyNetIOudp replacement for testing.  It is given a list of packets to be 'read'
and in turn saves all the packets it 'writes' for us to inspect.

Definition at line 292 of file cma_test.py.

Constructor & Destructor Documentation

def cma.tests.cma_test.TestIO.__init__ (   self,
  addrframesetpairs,
  sleepatend = 0 
)

Definition at line 297 of file cma_test.py.

Member Function Documentation

def cma.tests.cma_test.TestIO.ackmessage (   self,
  dest,
  fs 
)

Definition at line 358 of file cma_test.py.

def cma.tests.cma_test.TestIO.bindaddr (   self,
  addr 
)

Definition at line 396 of file cma_test.py.

def cma.tests.cma_test.TestIO.closeconn (   self,
  qid,
  dest 
)

Definition at line 365 of file cma_test.py.

def cma.tests.cma_test.TestIO.connactive (   self,
  ioaddr,
  qid = 0 
)

Definition at line 361 of file cma_test.py.

def cma.tests.cma_test.TestIO.dumppackets (   self)

Definition at line 400 of file cma_test.py.

References cma.tests.cma_test.TestIO.packetswritten.

def cma.tests.cma_test.TestIO.fileno (   self)

Definition at line 395 of file cma_test.py.

def cma.tests.cma_test.TestIO.getmaxpktsize (   self)

Definition at line 394 of file cma_test.py.

def cma.tests.cma_test.TestIO.mcastjoin (   self,
  addr 
)

Definition at line 397 of file cma_test.py.

def cma.tests.cma_test.TestIO.recvframesets (   self)
def cma.tests.cma_test.TestIO.sendframesets (   self,
  dest,
  fslist 
)

Definition at line 349 of file cma_test.py.

References cma.tests.cma_test.TestIO._sendaframeset().

Referenced by cma.tests.cma_test.TestIO.sendreliablefs().

Here is the call graph for this function:

Here is the caller graph for this function:

def cma.tests.cma_test.TestIO.sendreliablefs (   self,
  dest,
  fslist 
)

Definition at line 355 of file cma_test.py.

References _NetGSource.sendframesets, cma.tests.cma_test.TestIO.sendframesets(), and cma.AssimCclasses.pyNetIO.sendframesets().

Here is the call graph for this function:

def cma.tests.cma_test.TestIO.setblockio (   self,
  tf 
)

Definition at line 398 of file cma_test.py.

def cma.tests.cma_test.TestIO.shutdown_on_timeout (   io)
static

Definition at line 316 of file cma_test.py.

Field Documentation

cma.tests.cma_test.TestIO.atend

Definition at line 311 of file cma_test.py.

Referenced by cma.tests.cma_test.TestIO.recvframesets().

cma.tests.cma_test.TestIO.index

Definition at line 304 of file cma_test.py.

Referenced by cma.tests.cma_test.TestIO.recvframesets().

cma.tests.cma_test.TestIO.inframes
cma.tests.cma_test.TestIO.initpackets

Definition at line 313 of file cma_test.py.

cma.tests.cma_test.TestIO.mainloop = None
static

Definition at line 296 of file cma_test.py.

cma.tests.cma_test.TestIO.packetsread

Definition at line 302 of file cma_test.py.

Referenced by cma.tests.cma_test.TestIO.recvframesets().

cma.tests.cma_test.TestIO.packetswritten
cma.tests.cma_test.TestIO.pipe_read

Definition at line 338 of file cma_test.py.

Referenced by cma.tests.cma_test.TestIO.cleanio().

cma.tests.cma_test.TestIO.pipe_write

Definition at line 310 of file cma_test.py.

cma.tests.cma_test.TestIO.readfails

Definition at line 312 of file cma_test.py.

cma.tests.cma_test.TestIO.sleepatend

Definition at line 303 of file cma_test.py.

cma.tests.cma_test.TestIO.timeout

Definition at line 331 of file cma_test.py.

Referenced by cma.tests.cma_test.TestIO.cleanio().

cma.tests.cma_test.TestIO.writecount

Definition at line 305 of file cma_test.py.


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