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

Post by bartbes »

I should be more clear in my documentation.. connect and disconnect only work when a handshake is set.
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

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

Post by philnelson »

I'm sure this is a stupid question, but what should said handshake be? Just a string that both ends share?

UPDATE: Answered my own question. Thanks.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes »

Update!

v0.03 changelog:
  • You can now create multiple instances of server and client, syntax:

    Code: Select all

    newserver = server(<same arguments as Init>)
    newclient = client(<same arguments as Init>)
  • Binary packing fixed (thanks to Crokoking for pointing that out)
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 »

Another update. Everything has moved to the lube table and to one file.
So: WARNING BACKWARDS INCOMPATIBLE!!

That's why the old one is still available.

Also:
Start on Easy mode, will probably not work as well as it should, but it works. Easy mode consists of 1 setup command, and only updates after that, it auto-synchronizes a table. (uses a user-supplied compression and decompression function).
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 »

Hi I didn't read all the discussion here, but I have a suggestion:

Integration of MYSQL comunication. Like: Logging in, sending requests, recieving Data without the need of reading the protocols.
User avatar
Gerrit
Prole
Posts: 46
Joined: Wed Mar 25, 2009 7:40 pm

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

Post by Gerrit »

Sparx wrote:Hi I didn't read all the discussion here, but I have a suggestion:

Integration of MYSQL comunication. Like: Logging in, sending requests, recieving Data without the need of reading the protocols.
For what do you need that?! If you feel the need to communicate with a MySQL database you can always use a php script in the middle. A lib to work with SQLite would be way better but I think both have not much to do with this discussion ;)
User avatar
mikembley
Citizen
Posts: 72
Joined: Wed Dec 17, 2008 5:30 pm
Location: Blackburn, UK
Contact:

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

Post by mikembley »

you can always use a php script in the middle.
Much more secure too.
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 »

Someone can write a protocol to be used with LUBE, but I think nobody volunteers to do that. SQL in LÖVE: see the issue tracker, I though of that before.
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 »

So if mr nobody does it in the next few month, then i think im going to do that myself.

Found a mistake in LUBE.lua line 328:

return self.socket:sendto(data, rcpt, lube.lube.clients[rcpt])

should be
return self.socket:sendto(data, rcpt, lube.clients[rcpt])


Is it possible to setmore than 1 connection? I guess not... that should be implemented (perhaps the lube.client:connect could return a connection ID which will be passed as parameters to all the other functions)
Last edited by Sparx on Sat Apr 04, 2009 4:35 pm, edited 1 time in total.
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 »

Oops, search & replace did too much :P
Didn't run into any problems while testing, but I probably just skipped that function :death:
Post Reply

Who is online

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