Luasockets & TCP

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
carllawl
Prole
Posts: 1
Joined: Sun Apr 22, 2012 10:26 pm

Luasockets & TCP

Post by carllawl »

.....................................
Last edited by carllawl on Sun Dec 01, 2019 12:14 pm, edited 1 time in total.
Alex22
Prole
Posts: 26
Joined: Wed Jun 02, 2010 5:42 pm

Re: Luasockets & TCP

Post by Alex22 »

Why don't you try applying some LUBE to your project:
https://love2d.org/wiki/LUBE

(I already used it for several things, works quite well)
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Luasockets & TCP

Post by Ensayia »

I'll post this small chat client I made in LOVE. This is the first time I have posted both the server and client of this, but hopefully you can look through it and get a basic idea of how things work. TO check it out, simply run the server, then run the client and in your config options set the server to localhost or 127.0.0.1

Feel free to ask questions.

NOTE: Client will throw an incompatibility warning on startup, just ignore it and it will go away.
Attachments
server.love
(1.55 KiB) Downloaded 381 times
client.love
(182.32 KiB) Downloaded 367 times
User avatar
Nabakin
Prole
Posts: 4
Joined: Tue Mar 19, 2013 8:43 pm

Re: Luasockets & TCP

Post by Nabakin »

Thanks for this. It really helped me understand how to use luasocket.
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Luasockets & TCP

Post by Ensayia »

Whoa, necropost.

Glad my examples helped. If you need networking for games I would highly suggest you check out the wiki entry on enet. It's pretty fantastic.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 95 guests