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 ...
Grodin asked 27/4, 2012 at 19:28

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...
Scalable asked 24/2, 2017 at 18:3

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 ...
Debug asked 10/5, 2013 at 21:45

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...
Alarcon asked 27/11, 2011 at 15:36

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" } ...
Functional asked 7/5, 2015 at 21:15

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...
Actuality asked 4/7, 2014 at 13:30

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...
Weisler asked 26/4, 2011 at 19:27

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...
Zymolysis asked 6/9, 2013 at 8:26

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...
Photomontage asked 2/8, 2013 at 7:42

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 ...
Sabrinasabsay asked 17/4, 2013 at 7:46

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...
Benniebenning asked 4/2, 2010 at 3:31

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...
Goring asked 4/11, 2012 at 14:50

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...
Sizar asked 16/5, 2011 at 10:31

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.