Android Specific LuaSocket problem

Hi,

I really need some help from people that have a better understanding of Android than I have.

I am creating an app (for windows) that allows interaction with the PC via any web enabled device for the purpose of touch screen interaction with PC games.

The app I have created is based on LuaSocket and is basically a webserver.

This app accepts connections perfectly from InternetExplorer, firefox and chrome on windows. Firefox from Ubuntu. Safari on the iOS of my iPod Touch but it just simply refuses to work as planned on any Android device.

The connection is made as I can see in my programs logfile but android seems refuses to accept the html code my app is transmitting, and in fact gives the error “Data Connectivity Problem - Server Failed to Communicate” - any insight would be much appreciated.

My Code - Edited
[lua]server:settimeout(0);
client = server:accept()
if client then
– make sure we don’t block waiting for this client’s line
client:settimeout(10)

– receive the line
local sLineIn, err = client:receive()

– if there was no error, send data back to the client
if not err then

–fConverted is a function to trim sLineIn and return filename we wish to load
–for instance convert sLineIn e.g(“GET /index.htm HTTP/1.1” to just string of “index.htm”)
sFile = fConverted(sLineIn)

–read the file in as a binary file
local inp = assert(io.open(sFile, “rb”))

–read the entire file into data
local data = inp:read("*all")

–send the data back to the client
client:send(data)
else

–error
print (“sLineIn Error”)
end
end[/lua] [import]uid: 37843 topic_id: 6553 reply_id: 306553[/import]

bump… [import]uid: 37843 topic_id: 6553 reply_id: 22987[/import]