Has anyone written a script to receive and send UDP packets? The idea here is for one or more external programs to send 'requests' to a script running on PI. The script would process the script (e.g., running a calibration on an image) and return a result to the requestor. UDP is much easier to use because you do not have to setup and maintain a TCP session.
If there is no script, is the Network class in SpiderMonkey available in PI?