LUBE (Networking Library)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LUBE (Networking Library)

Post by bartbes »

But I don't use socket.bind, I use tcp:bind(), which doesn't have that.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: LUBE (Networking Library)

Post by Lap »

I see. I'll let the testers have a go at it. Thanks as always!

Update: Putting self.socket:setoption('reuseaddr', true) right before binding a socket will fix the problem.
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: LUBE (Networking Library)

Post by TsT »

Have you an up-to-date sample of code about using server/client LUBE ?
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LUBE (Networking Library)

Post by bartbes »

I edit the first post to link to:
TechnoCat's awesome introductory writeup
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: LUBE (Networking Library)

Post by TsT »

Great, Thanks!!

I'm also added the link directly in the LUBE and LUBE (Français) pages.
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Bambo
Prole
Posts: 41
Joined: Thu Mar 24, 2011 8:23 pm
Location: Warrington, England
Contact:

Re: LUBE (Networking Library)

Post by Bambo »

Hey, how would you separate multiple connections?
I'm having trouble making the server hold more than one player's x,y coordinates. any help is awesome :awesome:
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LUBE (Networking Library)

Post by Jasoco »

I'd love to see a barebones framework .love files showing exactly how to handle all the LUBE stuff. I can't figure out that Volleyball project because there's too much code in there I can't separate from the parts I need.

I'd want to start at the beginning. Connect to a server app. Send a variable or two and have it display on the other screen. Then work from there.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LUBE (Networking Library)

Post by bartbes »

Bambo wrote:Hey, how would you separate multiple connections?
Well, you can create connection objects.

Code: Select all

client1 = lube.client(whatever, I, normally, pass, to, lube.client:init)
Jasoco wrote:I'd love to see a barebones framework .love files showing exactly how to handle all the LUBE stuff.
The OP links to a post in this thread that has that.
Bambo
Prole
Posts: 41
Joined: Thu Mar 24, 2011 8:23 pm
Location: Warrington, England
Contact:

Re: LUBE (Networking Library)

Post by Bambo »

Hey im still having trouble with multiple people, I'm unsure on how i can store all their x,y coordinates then send them back?
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: LUBE (Networking Library)

Post by vrld »

Make every client have an unique id. Store player coordinates (and other stuff) in a big table with the id's as keys.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests