Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/britzl/defold-luasocket
The LuaSocket *.lua files, modified to play nicely with Defold. Also contains the mime.core files as a native extension.
https://github.com/britzl/defold-luasocket
defold defold-library luasocket
Last synced: about 1 month ago
JSON representation
The LuaSocket *.lua files, modified to play nicely with Defold. Also contains the mime.core files as a native extension.
- Host: GitHub
- URL: https://github.com/britzl/defold-luasocket
- Owner: britzl
- License: mit
- Created: 2017-11-26T11:30:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T14:00:02.000Z (over 5 years ago)
- Last Synced: 2024-11-02T14:33:49.244Z (about 2 months ago)
- Topics: defold, defold-library, luasocket
- Language: Lua
- Homepage:
- Size: 43.9 KB
- Stars: 11
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-defold - LuaSocket
README
# defold-luasocket
The Defold engine already includes the socket module from [LuaSocket](http://w3.impa.br/~diego/software/luasocket/) and the accompanying socket.lua module (located in builtins/scripts/). The builtins folder of a Defold project does however not contain any of the other .lua files from the LuaSocket project and the Defold engine doesn't provide the mime.core files either. This project aims to provide the missing LuaSocket .lua files, modified to play nicely with Defold (the require calls for Lua base libraries have been changed to work with Defold). This project also provides the mime.core part of LuaSocket as a native extension. The version of LuaSocket used in Defold is [3.0-rc1](https://github.com/diegonehab/luasocket/releases).# Installation
You can use the extension in your own project by adding this project as a [Defold library dependency](http://www.defold.com/manuals/libraries/). Open your game.project file and in the dependencies field under project add:https://www.github.com/britzl/defold-luasocket/archive/master.zip
Or point to the ZIP file of a [specific release](https://github.com/britzl/defold-luasocket/releases).
# Usage
See the [documentation for LuaSocket](http://w3.impa.br/~diego/software/luasocket/) for an in-depth API specification and example use cases. Also refer to the example folder inside this project.