Lua socket asynchronous calls

前端 未结 3 724
走了就别回头了
走了就别回头了 2020-12-08 17:51

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. M

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 18:10

    You may find some inspiration in luaThread. One of its demos is an asynchronous wget.

    A recently developed threading library lua-llthreads supports the ZMQ "socket library that acts as a concurrency framework" with lua-zmq

提交回复
热议问题