riaps.run.qryPort module

Query port class Created on Oct 10, 2016

@author: riaps

class riaps.run.qryPort.QryPort(parentComponent, portName, portSpec)[source]

Bases: DuplexConnPort

Query port is to access a server. Has a request and a response message type, and uses a DEALER socket.

closeSocket()[source]

Close down the port. Abstract, subclasses must implement this method.

getInfo()[source]

Retrieve relevant information about this port

getSocket()[source]

Return the socket of port

inSocket()[source]

Return True because the socket is used of input

recv()[source]

Receive a bytes through this port

recv_pyobj()[source]

Receive an object through this port

reset()[source]

Reset the port object. Subclasses can override this method.

Reset is to be used when a send or receive operation fails and the port needs to be re-initialized.

send(msg)[source]

Send bytes through this port

send_pyobj(msg)[source]

Send an object through this port

setup()[source]

Set up the port

setupSocket(owner)[source]

Set up the socket of the port. Return a tuple suitable for querying the discovery service for the publishers