include <cx/PortAccess.h>
int cxInputPortOpen( char *name ); int cxOutputPortOpen( char *name );
cxInputPortCount and cxOutputPortCount return the number of input and output ports respectively. cxInputPortNames and cxOutputPortNames return a null-terminated list of the port names defined for this module.
char **cxInputPortNames(); int cxInputPortCount(); char **cxOutputPortNames(); int cxOutputPortCount();
cxInputDataGet returns a pointer to the data on an input port. If no data has been received, a NULL is returned.
void *cxInputDataGet( int portIndex );
cxInputDataChanged returns non-zero if the data on the given port has changed since the module fired last.
int cxInputDataChanged( int portIndex );
cxInputDataConnIDGet returns a unique identifier for the connection which provided the data returned by cxInputDataGet.
long cxInputDataConnIDGet( int portIndex );
cxInputConnectsGet and cxOutputConnectsGet returns the number of connections present on the port.
int cxInputConnectsGet( int portIndex ); int cxOutputConnectsGet( int portIndex );
cxOutputDataSet places the data pointed to by data in the output port. cxOutputDataFlush causes data in the port to be sent to downstream modules immediately.
void cxOutputDataSet( int portIndex, void *data ); void cxOutputDataFlush( int portIndex );