| 
    TestCenter Reference
    
   | 
 
The connection's slave. More...
  
Public Member Functions | |
| __init__ (self) | |
| The slave's constructor.   | |
| __del__ (self) | |
| The slave's destructor.   | |
| connect (self) | |
| Connect to master and configure connection.   | |
| disconnect (self) | |
| Disconnect from master.   | |
  Public Member Functions inherited from TestCenterAdvanced.IPC.Communicator | |
| getPort (self) | |
| Get the port used for connections.   | |
| isConnected (self) | |
| Get the connection status of the IPC client.   | |
| send (self, data, timeout) | |
| Send the data via the socket using the given timeout.   | |
| recv (self, timeout) | |
| Receive data via the socket using the given timeout.   | |
| getLastError (self) | |
| Get a tuple describing the last error.   | |
| getLastErrorWithMessage (self) | |
| Get a tuple describing the last error.   | |
Protected Attributes | |
| _csocket | |
| _mHost | |
| _mPort | |
| _mConnected | |
  Protected Attributes inherited from TestCenterAdvanced.IPC.Communicator | |
| _mHost | |
| IP to connect to.   | |
| _mPort | |
| Port to use for the connection.   | |
| _mConnected | |
| Status of the connection.   | |
| _msocket | |
| Main socket of the server.   | |
| _csocket | |
| Connection socket.   | |
| _mErrorCode | |
| Internal error code used to track the last error.   | |
| _mErrorMsg | |
| Internal error messages.   | |
Additional Inherited Members | |
  Protected Member Functions inherited from TestCenterAdvanced.IPC.Communicator | |
| _send (self, data, length, timeout) | |
| Send's little helper.   | |
| _recv (self, length, timeout) | |
| Receive's little helper.   | |
| _handleError (self, errorCode, errorMsg, silent=False) | |
| Set the error code and message and disconnect from network.   | |
  Static Protected Attributes inherited from TestCenterAdvanced.IPC.Communicator | |
| int | _mMsgLength = 8192 | 
| Length of the messages sent between the two entities.   | |
The connection's slave.
The slave of the connection is the entity connecting to the master.
| TestCenterAdvanced.IPC.ComSlave.__init__ | ( | self | ) | 
The slave's constructor.
Reimplemented from TestCenterAdvanced.IPC.Communicator.
Definition at line 336 of file IPC.py.
References TestCenterAdvanced.IPC.ComSlave.__init__().
Referenced by TestCenterAdvanced.IPC.ComSlave.__init__().
| TestCenterAdvanced.IPC.ComSlave.__del__ | ( | self | ) | 
The slave's destructor.
Definition at line 347 of file IPC.py.
References TestCenterAdvanced.IPC.Communicator._csocket, TestCenterAdvanced.IPC.ComMaster._csocket, and TestCenterAdvanced.IPC.ComSlave._csocket.
| TestCenterAdvanced.IPC.ComSlave.connect | ( | self | ) | 
| TestCenterAdvanced.IPC.ComSlave.disconnect | ( | self | ) | 
Disconnect from master.
Definition at line 387 of file IPC.py.
References TestCenterAdvanced.IPC.Communicator._csocket, TestCenterAdvanced.IPC.ComMaster._csocket, TestCenterAdvanced.IPC.ComSlave._csocket, TestCenterAdvanced.IPC.Communicator._handleError(), TestCenterAdvanced.IPC.Communicator._mConnected, TestCenterAdvanced.IPC.ComMaster._mConnected, and TestCenterAdvanced.IPC.ComSlave._mConnected.
Referenced by TestCenterAdvanced.IPC.Communicator._handleError().
      
  | 
  protected | 
Definition at line 339 of file IPC.py.
Referenced by TestCenterAdvanced.IPC.ComMaster.__del__(), TestCenterAdvanced.IPC.ComSlave.__del__(), TestCenterAdvanced.IPC.Communicator._recv(), TestCenterAdvanced.IPC.Communicator._send(), TestCenterAdvanced.IPC.ComMaster.disconnect(), and TestCenterAdvanced.IPC.ComSlave.disconnect().
      
  | 
  protected | 
Definition at line 377 of file IPC.py.
Referenced by TestCenterAdvanced.IPC.ComMaster.__del__(), TestCenterAdvanced.IPC.ComMaster.disconnect(), TestCenterAdvanced.IPC.ComSlave.disconnect(), TestCenterAdvanced.IPC.Communicator.isConnected(), TestCenterAdvanced.IPC.Communicator.recv(), and TestCenterAdvanced.IPC.Communicator.send().
      
  | 
  protected | 
Definition at line 359 of file IPC.py.
Referenced by TestCenterAdvanced.IPC.Communicator.getPort().