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) v0.04 + LUBE-X v0.02

Post by bartbes »

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.
User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02

Post by Sparx »

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
User avatar
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

Post by bartbes »

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:
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...
User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02

Post by Sparx »

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.
User avatar
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

Post by bartbes »

That does sound like a solution, I'll put it on my todo list. (which doesn't exist :P)
User avatar
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

Post by bartbes »

0.5 released, I hope I didn't forget or broke something (keeps happening to me somehow :death:)
User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

Re: LUBE (Networking Library) v0.5 + LUBE-X v0.02

Post by Sparx »

If someone tests this succesfully im going to integrate it in my actual project

(never touch a running system)
User avatar
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

Post by bartbes »

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.
User avatar
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

Post by Robin »

bartbes wrote:0.5 released, I hope I didn't forget or broke something (keeps happening to me somehow :death:)
But isn't this what beta-testing is for?
Help us help you: attach a .love.
User avatar
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

Post by bartbes »

Yes.. :P
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests