Lua Socket: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Knorke (talk | contribs)
thread & dl
Line 53: Line 53:
*http://w3.impa.br/~diego/software/luasocket/tcp.html
*http://w3.impa.br/~diego/software/luasocket/tcp.html
*http://w3.impa.br/~diego/software/luasocket/udp.html
*http://w3.impa.br/~diego/software/luasocket/udp.html
==links==
[http://springrts.com/dl/buildbot/default/luasocket/ compiled Spring test version]
{{forumlink|topic=27484|title=forum thread}}

Revision as of 07:04, 30 January 2012

LuaSocket is a development branch of spring:

see https://github.com/spring/spring/tree/luasocket


config settings

All LuaSocket related config is readonly for LuaWidgets. They can be only changed through unitsync.


LuaSocketEnabled = 1 Default is 0 means, all Socket functions are disabled
TCPAllowConnect allow TCP-connections to the listed hosts, for example: "springrts.com:80 springfiles.com:80"
TCPAllowListen Server TCP-sockets are allowed on this port, for example: "localhost:1234 0.0.0.0:12345"
UDPAllowConnect see TCPAllowConnect
UDPAllowConnect see TCPAllowListen



example code

see https://github.com/spring/spring/blob/luasocket/cont/examples/Widgets/luasocket.lua

Notes / known issues / TODO

documentation

links

compiled Spring test version forum thread