LUBE (Networking Library)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
The update() stuff was orginally meant to be in a state lube.easy is in now (well, it was supposed to be working, but you know, experimental, better to do yourself), so I didn't really look into efficiency while creating it, I'll take a look soon.
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
I think i just remember how UDP is catched in other apps. There is something like if EOF... don't know if this was TCP or UDP... but i think something like is there any data waiting is missing...
btw: Nice thing this lube: high-frequent-small-packages high-traffic and i guess package loss < 1% via LAN
btw: Nice thing this lube: high-frequent-small-packages high-traffic and i guess package loss < 1% via LAN
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
It's just a wrapper to LuaSocket, okay, I did simplify everything a bit.
But basically all I did was create some functions on a high level which call a lot of other functions on a (somewhat) lower level.
Oh, and could you explain the following sentence for me:
But basically all I did was create some functions on a high level which call a lot of other functions on a (somewhat) lower level.
Oh, and could you explain the following sentence for me:
Sparx wrote:There is something like if EOF... don't know if this was TCP or UDP... but i think something like is there any data waiting is missing...
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
I am not sure if this aplies to UDP or aplies to any protocol.. Years ago I coded some programms with blitzbasic. As far as I remember you could tell the "readfunction" to read as long as there is new data coming in. You could do this by ckecking if the latest packagelength was 0. I am really not sure and don't know if it is in the UDP protocoll like this but still, if not this would be a nice solution.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
That does sound like a solution, I'll put it on my todo list. (which doesn't exist )
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
0.5 released, I hope I didn't forget or broke something (keeps happening to me somehow )
Re: LUBE (Networking Library) v0.5 + LUBE-X v0.02
If someone tests this succesfully im going to integrate it in my actual project
(never touch a running system)
(never touch a running system)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.5 + LUBE-X v0.02
Well, I only added two functions and looped in update, so you can check the code itself, but I think it's pretty safe to just implement it right away.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
But isn't this what beta-testing is for?bartbes wrote:0.5 released, I hope I didn't forget or broke something (keeps happening to me somehow )
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests