TCP Port (Simple EventHandler)
Overview
The TCP port handler sits idle waiting for incoming TCP connections on a
specified TCP port. When a connection is available a script is called to handle
the session.
Configuration
The Connector needs the following parameters:
Parameter |
Description |
class |
com.architech.trigger.rstTrigger |
tcp_port |
The TCP port on which to accept incoming
connections |
scriptEngine |
Script engine for script (i.e. javascript, perl
etc..) |
script |
Script to handle a TCP connection. |
Script Objects
When your script executes it has four objects available: socket, inp, out and
main. See the Script Parser for
an explanation of the inp and out objects. The main object has a function
for logging message, main.logmsg(str), and one for starting AssemblyLines -
main.startAL(alname). The socket object is the raw java.net.Socket object.
Consult the Java documentation
for how to use this object.
Downloads
Included in base product
|