Difference between revisions of "socket"
m (Move Windows notice) |
Corn-cube-2 (talk | contribs) m (Updated link to reference manual) |
||
Line 16: | Line 16: | ||
== Reference Manual == | == Reference Manual == | ||
− | For detailed usage, see the [https | + | For detailed usage, see the [https://w3.impa.br/~diego/software/luasocket/reference.html reference manual]. |
== See Also == | == See Also == |
Revision as of 07:24, 5 August 2022
Available since LÖVE 0.5.0 |
This module is not supported in earlier versions. |
Implements a luasocket module for TCP/UDP networking. The luasocket module is bundled with love binary, but in order to use it, you need to require the module like this:
local socket = require("socket")
Prior to 11.0, LÖVE doesn't fully supports non-blocking TCP connections on Windows |
Notes
Starting with LÖVE 11.0, require("socket")
no longer creates a global variable.
When using blocking operations (network connect/read/write, or socket.sleep), the whole LÖVE main loop will be blocked, and it is usually a bad idea. So use only non-blocking operations if possible, or use it in a thread.
Reference Manual
For detailed usage, see the reference manual.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info