Page 1 of 1
Luasockets & TCP
Posted: Sun Apr 22, 2012 11:05 pm
by carllawl
.....................................
Re: Luasockets & TCP
Posted: Mon Apr 23, 2012 5:29 pm
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)
Re: Luasockets & TCP
Posted: Mon Apr 23, 2012 5:32 pm
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.
Re: Luasockets & TCP
Posted: Sun Jun 01, 2014 5:30 am
by Nabakin
Thanks for this. It really helped me understand how to use luasocket.
Re: Luasockets & TCP
Posted: Sun Jun 01, 2014 2:49 pm
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.