Page 23 of 34

Re: LUBE (Networking Library)

Posted: Fri Nov 05, 2010 11:09 pm
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.

Re: LUBE (Networking Library)

Posted: Sat Nov 06, 2010 10:04 am
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.

Re: LUBE (Networking Library)

Posted: Sat Nov 06, 2010 3:17 pm
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.

Re: LUBE (Networking Library)

Posted: Sat Nov 06, 2010 3:33 pm
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.

Re: LUBE (Networking Library)

Posted: Sat Nov 06, 2010 3:47 pm
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. ._.

Re: LUBE (Networking Library)

Posted: Sun Nov 07, 2010 12:32 am
by zac352
Is there a version of lube non dependent on love? :P

Re: LUBE (Networking Library)

Posted: Sun Nov 07, 2010 10:17 am
by bartbes
It is usable without love, it's just structured to fit in love, so calling update will probably be crappy.

Re: LUBE (Networking Library)

Posted: Sat Jan 29, 2011 4:04 pm
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?

Re: LUBE (Networking Library)

Posted: Sun Jan 30, 2011 7:29 pm
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?

Re: LUBE (Networking Library)

Posted: Sun Jan 30, 2011 8:00 pm
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.