The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.tests.cma_test.IOTestIO Class Reference

Public Member Functions

def __init__ (self, addrframesetpairs, sleepatend=0)
 
def recvframesets (self)
 
def sendframesets (self, dest, fslist)
 
def sendreliablefs (self, dest, fslist)
 
def ackmessage (self, dest, fs)
 
def connactive (self, ioaddr, qid=0)
 
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 ()
 
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 341 of file cma_test.py.

Constructor & Destructor Documentation

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

Definition at line 353 of file cma_test.py.

Member Function Documentation

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

Definition at line 433 of file cma_test.py.

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

Definition at line 472 of file cma_test.py.

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

Definition at line 440 of file cma_test.py.

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

Definition at line 436 of file cma_test.py.

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

Definition at line 476 of file cma_test.py.

References cma.tests.cma_test.IOTestIO.packetswritten.

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

Definition at line 471 of file cma_test.py.

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

Definition at line 470 of file cma_test.py.

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

Definition at line 473 of file cma_test.py.

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

Definition at line 424 of file cma_test.py.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 430 of file cma_test.py.

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

Here is the call graph for this function:

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

Definition at line 474 of file cma_test.py.

def cma.tests.cma_test.IOTestIO.shutdown ( )
static

Definition at line 347 of file cma_test.py.

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

Definition at line 374 of file cma_test.py.

Field Documentation

cma.tests.cma_test.IOTestIO.atend

Definition at line 368 of file cma_test.py.

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

cma.tests.cma_test.IOTestIO.index

Definition at line 361 of file cma_test.py.

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

cma.tests.cma_test.IOTestIO.inframes
cma.tests.cma_test.IOTestIO.initpackets

Definition at line 370 of file cma_test.py.

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

Definition at line 345 of file cma_test.py.

cma.tests.cma_test.IOTestIO.packetsread

Definition at line 359 of file cma_test.py.

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

cma.tests.cma_test.IOTestIO.packetswritten
cma.tests.cma_test.IOTestIO.pipe_read

Definition at line 411 of file cma_test.py.

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

cma.tests.cma_test.IOTestIO.pipe_write

Definition at line 367 of file cma_test.py.

cma.tests.cma_test.IOTestIO.readfails

Definition at line 369 of file cma_test.py.

cma.tests.cma_test.IOTestIO.sleepatend

Definition at line 360 of file cma_test.py.

cma.tests.cma_test.IOTestIO.timeout

Definition at line 404 of file cma_test.py.

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

cma.tests.cma_test.IOTestIO.writecount

Definition at line 362 of file cma_test.py.


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