Luasockets & TCP
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Luasockets & TCP
.....................................
Last edited by carllawl on Sun Dec 01, 2019 12:14 pm, edited 1 time in total.
Re: Luasockets & TCP
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)
https://love2d.org/wiki/LUBE
(I already used it for several things, works quite well)
Re: Luasockets & TCP
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.
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 393 times
-
- client.love
- (182.32 KiB) Downloaded 381 times
Re: Luasockets & TCP
Thanks for this. It really helped me understand how to use luasocket.
Re: Luasockets & TCP
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.
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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 9 guests