PHISH WWW Site - PHISH Documentation - Bait.py Commands

phish_check() function

C syntax:

void phish_check() 

C examples:

phish_check(); 

C++ syntax:

void check() 

C++ examples:

phish::check(); 

Python syntax:

def check() 

Python examples:

import phish
phish.check() 

Description:

This is a PHISH library function which can be called from a minnow application. In PHISH lingo, a "minnow" is a stand-alone application which makes calls to the PHISH library.

This function is typically the final function called by a minnow during its setup phase, after the minnow has defined its input and output ports via the phish_input and phish_output functions. It must be called before any datums are received or sent to other minnows.

The function checks that the input and output ports defined by the minnow are consistent with their usage in the PHISH input script, as processed by the bait.py tool.

Specifically, it does the following:


Restrictions:

This function must be called after input and output ports have been defined, and before any datums are received or sent to other minnows.

Related commands:

phish_input, phish_output