TestCenter Reference
TestCenterAdvanced.IPC.ComMaster Class Reference

The connection's master. More...

Inheritance diagram for TestCenterAdvanced.IPC.ComMaster:

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 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 194 of file IPC.py.

Constructor & Destructor Documentation

◆ __init__()

def TestCenterAdvanced.IPC.ComMaster.__init__ (   self,
  connectTimeout = 10 

◆ __del__()

def TestCenterAdvanced.IPC.ComMaster.__del__ (   self)

Destructor making sure the socket is deleted.

Definition at line 211 of file IPC.py.

References TestCenterAdvanced.IPC.Communicator._csocket, TestCenterAdvanced.IPC.Communicator._mConnected, and TestCenterAdvanced.IPC.Communicator._msocket.

Member Function Documentation

◆ connect()

◆ disconnect()

def TestCenterAdvanced.IPC.ComMaster.disconnect (   self)

◆ getConnectTimeout()

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

Definition at line 250 of file IPC.py.

References TestCenterAdvanced.IPC.ComMaster._connectTimeout.

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