Download Latest Version Monasic-ProofOfConcept1.zip (975.3 kB)
Email in envelope

Get an email when there's a new version of Monasic

Name Modified Size InfoDownloads / Week
Parent folder
Monasic-ProofOfConcept2-Win32Service-install.zip 2010-01-13 1.1 MB
README.txt 2010-01-13 996 Bytes
Monasic-ProofOfConcept2-Lua.zip 2010-01-13 1.1 MB
Totals: 3 Items   2.1 MB 1
THIS PRODUCT IS A PREALPHA. IT IS NOT GUARANTEED TO WORK AND COMES WITH ABSOLUTELY NO WARRANTY.


*WHAT IT DOES*
Runs bootstrap.lua to register any files that should be called once a command is recived
Listens on port 20000 for one connection.
Handles connection. Prints Hello\r\n.
Waits for line terminated by \r(\n)
Splits line up into command and parameters
Send these to the client
Registers command and parameters with LUA as LUA globals _COMMAND and _PARAMS
Runs every script defined in bootstrap.lua (with the globals defined)
A test script and bootstrap have been included
Closes client socket, stops listening and quits.


*HOW TO TEST*

Run program (as administrator on Vista/7)
Open Windows telnet and "telnet localhost 20000"
Type in a line (with spaces) and it will split it up into command and paramters, then give it back to you
The server will then output whether the command was or was not equal to "help"
To change the functionality, simply change test.lua
Source: README.txt, updated 2010-01-13