Ah, 255.255.255.255 is a broadcast address. I assume client connecting to it also allows you to receive data.TechnoCat wrote:I think you would find my post quite helpful. http://love2d.org/forums/posting.php?mo ... 49#pr21112zac352 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?
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
LUBE (Networking Library)
Re: LUBE (Networking Library)
Hello, I am not dead.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
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.
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)
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.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.
Hello, I am not dead.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
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)
Those attachments don't exist. ._.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.
Hello, I am not dead.
Re: LUBE (Networking Library)
Is there a version of lube non dependent on love?
Hello, I am not dead.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
It is usable without love, it's just structured to fit in love, so calling update will probably be crappy.
Re: LUBE (Networking Library)
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?
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)
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?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests