TestCenter Reference
TestCenterAdvanced.IPC.ComMaster Class Reference

The connection's master. More...

Inheritance diagram for TestCenterAdvanced.IPC.ComMaster:
TestCenterAdvanced.IPC.Communicator

Public Member Functions

def __init__ (self, connectTimeout=10)
 Constructor initializing the master socket. More...
 
def __del__ (self)
 Destructor making sure the socket is deleted. More...
 
def connect (self, timeout=2)
 Wait for a slave to connect and configure the connection. More...
 
def disconnect (self)
 Unlink connection to the slave. More...
 
def getConnectTimeout (self)
 
- Public Member Functions inherited from TestCenterAdvanced.IPC.Communicator
def __init__ (self)
 
def getPort (self)
 Get the port used for connections. More...
 
def isConnected (self)
 Get the connection status of the IPC client. More...
 
def send (self, data, timeout)
 Send the data via the socket using the given timeout. More...
 
def recv (self, timeout)
 Receive data via the socket using the given timeout. More...
 
def getLastError (self)
 Get a tuple describing the last error. More...
 
def getLastErrorWithMessage (self)
 Get a tuple describing the last error. More...
 

Detailed Description

The connection's master.

The master of the connection is the entity waiting for the slave to connect.

Definition at line 230 of file IPC.py.

Constructor & Destructor Documentation

◆ __init__()

◆ __del__()

Member Function Documentation

◆ connect()

◆ disconnect()

◆ getConnectTimeout()

def TestCenterAdvanced.IPC.ComMaster.getConnectTimeout (   self)
Returns the timeout used by the Master while establishing the connection to the slave.

Definition at line 302 of file IPC.py.

References TestCenterAdvanced.IPC.ComMaster._connectTimeout.


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