LUBE (Networking Library)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: LUBE (Networking Library)

Post by zac352 »

TechnoCat wrote:
zac352 wrote:The documentation was useless in teaching me how to make server information broadcast to all clients... Is it possible to enumerate through local area clients?
I think you would find my post quite helpful. http://love2d.org/forums/posting.php?mo ... 49#pr21112
It even has these two links about broadcasting to certain clients. Seems like you might want to broadcast to the 192.168.x.x subnet?
http://love2d.org/forums/viewtopic.php? ... =120#p6151
http://love2d.org/forums/viewtopic.php? ... =150#p7029
Ah, 255.255.255.255 is a broadcast address. I assume client connecting to it also allows you to receive data.
Hello, I am not dead.
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 »

So are you trying to send a message to all clients, or a message to clients connected via broadcast?
Because in the first case it's as simple as not providing a client number when sending, and in the second case, a 'broadcast client' just connects to the server as if it were a normal one.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: LUBE (Networking Library)

Post by zac352 »

bartbes wrote:So are you trying to send a message to all clients, or a message to clients connected via broadcast?
Because in the first case it's as simple as not providing a client number when sending, and in the second case, a 'broadcast client' just connects to the server as if it were a normal one.
I'm trying to figure out how you would make a LAN server list, like on battlefield games or blockland. I can only see one way of actually getting a server list of such to work by having some sort of universal lan broadcast to all thing. Online servers, you have to have a master server in which saves a server list, where anyone who wants a server list sends a request to said server.
Hello, I am not dead.
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 »

http://love2d.org/forums/viewtopic.php?f=5&t=676 I think.. anyway, if that's the version I think it is support for it is built into LUBE.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: LUBE (Networking Library)

Post by zac352 »

bartbes wrote:http://love2d.org/forums/viewtopic.php?f=5&t=676 I think.. anyway, if that's the version I think it is support for it is built into LUBE.
Those attachments don't exist. ._.
Hello, I am not dead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: LUBE (Networking Library)

Post by zac352 »

Is there a version of lube non dependent on love? :P
Hello, I am not dead.
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 »

It is usable without love, it's just structured to fit in love, so calling update will probably be crappy.
User avatar
FinalSin
Prole
Posts: 16
Joined: Tue Dec 14, 2010 3:09 pm

Re: LUBE (Networking Library)

Post by FinalSin »

So, uh, is this still 'the' way to do LOVE networking?

I've got a minimal skeleton set up, but I'm not clear on how I actually send data between server and client. Any thoughts?
User avatar
FinalSin
Prole
Posts: 16
Joined: Tue Dec 14, 2010 3:09 pm

Re: LUBE (Networking Library)

Post by FinalSin »

This kicks ass, as an update. I love it. It works in localhost perfectly, but is there anything I should know to get it working across computers? Is www.whatismyip.com giving the wrong IP address? Do I need to open ports, usually? Any hints?
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 »

In general you will be behind a NAT, so you will have to do port forwarding. However, if you're really into getting yourself into a lot of trouble, take a look at UDP hole punching.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests