luasocket Questions
2
Either I'm overtired or blind. I want to learn networking with Lua and therefore I have to install the socket lib, so I can require it easily, but I don't know, which files I should "require". The ...
1
Solved
Problem
Following LuaSocket Introduction I managed to get the server running. I also managed to connect from the client side. I noticed, however, that the server script freezes until server:accept...
2
Solved
When I run my code in terminal, I get this error/message:
module 'socket.http' not found:
no field package.preload['socket.http']
no file '/usr/local/share/lua/5.2/socket/http.lua'
no ...
4
I am trying to retrieve a page on my SSL enabled server with a lua script. Important to note that the server has a self-signed certificate. No problem with certificate issued by a trusted CA.
loca...
1
Solved
I use LuaForWindows (latest version) and I have read this and this answer and everything i could find in the mailinglist of lua-users.org. What ever I try (most) sites only respond with either 301 ...
Tillery asked 31/5, 2016 at 20:39
3
Solved
When I use the following script:
local smtp = require("socket.smtp")
local from = "from@host"
local rcpt = "rcpt@host"
local msg = {
headers = {
to = rcpt,
subject = "Hi"
},
body = "Hello"
}
...
2
Solved
i'm having a trouble with lua.
I need send a request to a website by GET and get the response from website.
Atm all i have is this:
local LuaSocket = require("socket")
client = LuaSocket.connect...
3
Solved
I am writing a program that uses Lua socket to communicate with a http server.
The API that I am using is "socket.http.request", and I have found that it is synchronous. My understanding is that it...
2
I am trying to compile luasocket 3 that I found on GitHub with lua 5.2. Problem is, I'm not sure how to bind together Lua with luasocket. Do I need to compile luasocket as DLL and then reference if...
1
I installed luarocks in my windows xp(32 bit) system following instructions available on
http://luarocks.org/en/Installation_instructions_for_Windows
to install luasocket from luarocks I used co...
1
I am writing a server using Lua programming language, and the network layer is based on LuaSocket.
And I cannot find any method to detect a socket is closed or not in its reference manual except ...
2
Solved
I want to download a large file and concurrently handle other things.
However, luasocket.http never calls coroutine.yield(). Everything else freezes while the file downloads.
Here's an illustrati...
Gregoor asked 11/11, 2012 at 16:32
3
I want to implement the function like embedding the socket function in my Lua build.
So I don't need to copy socket.core.dll any more (just for fun).
I search the maillist, and see some guys discu...
2
Solved
I'm working on a little Lua app (under Lua for Windows, if that matters) that uses sockets to communicate with the outside world. (LuaSocket)
And I'm trying to make several requests in parallel. S...
2
Solved
The LuaSocket HTTP module documentation says that a timeout can be set on a HTTP connection:
The following constants can be set to control the default behavior of the HTTP module:
PORT: default p...
2
Solved
The problem is the inability of my Lua server to accept multiple request simultaneously.
I attempted to make each client message be processed in its on coroutine, but this seems to have failed.
wh...
Splendor asked 19/2, 2011 at 0:23
1
© 2022 - 2024 — McMap. All rights reserved.