Questions tagged [luasocket]
LuaSocket is a Lua extension library that helps to add support for functionality commonly needed by applications that deal with the Internet. It provides easy access to TCP, UDP, DNS, SMTP, FTP, HTTP, MIME and more.
luasocket
178
questions
0
votes
0
answers
23
views
Client is not receiving anything of data in my chat app
I am creating a chat app and want a server to broadcast every message that a client sends it, but the client is receiving no data after the server broadcasts the client message.
I am using Lua lanes ...
0
votes
1
answer
45
views
about the lua version installed on armbian , it seems confusing
The armbian img is "Armbian_23.05.0_amlogic_s905l3a_bullseye_5.15.110_server_2023.05.02"
I want use luasocket, but it is not support lua 5.4, so lua 5.1 was installed, however......
Which ...
0
votes
0
answers
101
views
What are my chances to get some basic web interaction from a program using Lua for scripts extensibility?
I'm very lost with this matter, so sorry if I'm asking for something too obvious or something, but I've been trying to get some low level info about it and, for what I've seen till now, I wouldn't ...
-1
votes
1
answer
221
views
How do I use 'Send' in Roblox's Private Messages Web API?
I've been here trying to send a message with luasocket and it had some problems, being 403: Token Validation Failed and 401: Authorization has been denied for this request.
local socket = require'...
0
votes
1
answer
316
views
Luasockets get the lua files
can I get the the .lua files that comes with luasockets somewhere? Like ftp.lua , http.lua etc...
I have no idea how to build something I trying a lot with VStudio but no luck. I tried to look how to ...
1
vote
1
answer
304
views
Splitting a table in Lua
I have a script which gives me a table of timestamps and prices from a website API, I want to split them apart into timestamp and prices separately.
My code to get the prices and timestamps
local ...
1
vote
1
answer
617
views
LUA error failed installing dependency (luasocket)
luasocket 3.0.0-1 depends on lua >= 5.1 (5.2-1 provided by VM)
mingw32-gcc -O2 -c -o src/mime.o -IC:\lua src/mime.c -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501
mingw32-gcc -O2 -c -o src/...
0
votes
0
answers
285
views
Lua - Handle a 301 Moved Permanently error and then save generated image from resulting URL
I’m trying to make a http.request to have a graph created, and then save the resulting .png graph image that is created. The problem is I want to do this with Lua, yet I’m struggling on two parts. (If ...
3
votes
1
answer
1k
views
PANIC: unprotected error in call to Lua API (undefined symbol: lua_gettop)
My environment is Lua-5.4.2 Luasocket-3.0-rc1.
When I run lua script directly, it work success.
When i run it through c language, it tell me error.
Error Msg is :
PANIC: unprotected error in call to ...
1
vote
0
answers
58
views
Luasocket closed unexpectedly after receiving large amount of packets
I'm using luasocket tcp to receive data in non-blocking mode periodically, (settimeout(0)), after receiving large amount of packets in a very small interval, the conn:receive(2048, part) emmit a '...
1
vote
0
answers
275
views
Lua - Obtain my local/external IP and my VPN tunnelled external IP via an HTTP Proxy
I have a VPN Docker container set up using Gluetun, which is running an HTTP Proxy, I’m trying to see if it’s possible to do a Lua http.request to retrieve both my direct (local) external IP, AND my ...
0
votes
1
answer
110
views
smtp.lua:80: attempt to call field 'b64' (a nil value) when trying to send an email using lua socket
So I tried sending an email using the luasocket smtp function with ssl but for some reason I get this error /usr/local/share/lua/5.1/socket/smtp.lua:80: attempt to call field 'b64' (a nil value) I ...
1
vote
1
answer
1k
views
Not able to install LuaSocket from LuaRocks on Windows
I installed the LuaRocks legacy package which includes Lua 5.1 on Windows. But when I run luarocks install luasocket, I get the following output:
Installing https://luarocks.org/luasocket-3.0rc1-2.src....
0
votes
1
answer
650
views
how to send email using lua programming language?
Can someone please give detailed explanation on how to send an email using lua, and please share a template.
Should the follow the same procedure to send mail using gmail account? I'm on windows 10 ...
0
votes
0
answers
926
views
Lua - Request works via curl, but not via Lua (Lua socket)?
I’m trying to interact with the Sipgate api (https://developer.sipgate.io/ ) using Lua, and an example they provide for authentication uses Curl, which works. (Not my b64 user/pass)
curl \
--request ...