How do I use luasocket?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

How do I use luasocket?

Post by BlackBulletIV »

I've noticed that Love has a library called luasocket included in it. This library seems to have facilities for all manner of socket connections, in addition to support for traditional sockets it has support for stuff like HTTP, FTP, and SMTP. Now what I'm wondering is, what do I need to do to use it in my Lua code?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: How do I use luasocket?

Post by Robin »

Code: Select all

require "socket"
:crazy:
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: How do I use luasocket?

Post by BlackBulletIV »

Well that's easy. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests