LUBE (Networking Library)

Showcase your libraries, tools and other projects that help your fellow love users.
petsagouris
Prole
Posts: 4
Joined: Wed Jan 21, 2009 3:33 pm

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

Post by petsagouris »

Indeed, it was the so-desired lube-x I was talking about :)
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 + LUBE-X v0.02

Post by bartbes »

As you can see in the topic title LUBE-X has nothing new at the moment. :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.02.1 + LUBE-X v0.02

Post by bartbes »

New version of packing, supporting dynamic seperators (requested feature)
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'm ashamed I have to say: I made a mistake! Well, fixed that, new version!
User avatar
Skofo
Party member
Posts: 146
Joined: Mon Dec 22, 2008 10:55 pm

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

Post by Skofo »

Thanks so much for working this hard on this! ^^

I definitely have plans to use this.
Working on: Viator
Need a 64-bit Debian package for LÖVE? Here it is!
Crokoking
Prole
Posts: 1
Joined: Mon Feb 23, 2009 1:43 am

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

Post by Crokoking »

there are still some problems in Binary
to make it work 100% use this code:

Code: Select all

function bin:unpackvalue(s)
	local id = s:sub(1, 1)
	s = s:sub(3)
	local len = s:find(bin.one)
	local i = tonumber(s:sub(1, len-1))
	local v = s:sub(len+1)
	if id=="N" then v=tonumber(v)
	elseif id=="B" and v=="true" then v=true
	elseif id=="B" and v=="false" then v=false
	end
	return i, v
end
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 »

Confirmed, don't know how I ever forgot that. New version will be out soon.
Anyone ideas for the client table?

EDIT: Where are my manners? Thanks!
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 »

How can one test LUBE? Is it possible to put up some kind of quick start how to file at this point? I'd love to work on/use it for a project of mine, because it looks quite good already.
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 »

Might be done in the future, as of now, try the docs: http://love2d.org/wiki/index.php?title=LUBE-Docs
(also included in the download)
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've been using the docs. I can get LUBE to contact a remote client, but I can't get it to DO anything once it's done so. Here's what my code is doing (obviously IP ADDRESS is replaced with current IP):

Server:

Code: Select all

server:Init(26001)
server:setCallback(recCallback,connectCallback,disconnectCallback)
Client:

Code: Select all

client:Init(26001)
client:setCallback(recCallback,connectCallback,disconnectCallback)
client:connect('IP ADDRESS',26001,false)
client:send("hello!")
the connectCallback is

Code: Select all

function connectCallback()

	message = "connected!"

end
and I've put client:update() and server:update() in the update() function of love, but I the message never changes on the client side. Any ideas? My router shows me that the client is connecting to my machine.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests