JSFL Server (allows JSFL from remote)
Server
About

1. Simple tutorial

  1. Start the server,

  2. Open a shell and launch your favorite tcp client to connect yourself to the Laziza JSFL server (Replace host/IP with a valid hostname or IP address) :

    • from a telnet client, type telnet host/IP 1212

    • from putty, type putty host/IP 1212

    • from netcat type netcat host/IP 1212

  3. Executing a JSFL command is very simple. The bellow example will display ‘Hello from flash’

exec fl.trace("hello from flash");

2. Laziza Commands

The commands are non case sensitive.

Table: 3 basics commands
Command Description
HELP Display the help
EXIT Abort connection
EXEC Execute JSFL Commands
Note
multilines commands

Use exec at the end of lines sequences to execute a multiline command.

fl.trace("Hello");
fl.trace("from flash");
EXEC

will display ‘hello’ and ‘from flash’ on two lines. The EXEC word at the end of a multine sequence allow us to pipe scripts through the STDIN:

3. Executing scripts

Scripts can be executed through the STDIN, using the pipe mecanism. Here is an example using netcat:

Example: Executing a script from an unix shell.
$/bin/sh
echo 'fl.trace("Hello from a JSFL script.");' > script
echo 'EXEC' >> script
echo 'EXIT' >> script
cat script | nc {HOST/IP} 1212
rm script
Note
About JSFL