LUBE (Networking Library)
-
- Prole
- Posts: 4
- Joined: Wed Jan 21, 2009 3:33 pm
Re: LUBE (Networking Library) v0.02 + LUBE-X v0.02
Indeed, it was the so-desired lube-x I was talking about
- 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
As you can see in the topic title LUBE-X has nothing new at the moment.
- 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
New version of packing, supporting dynamic seperators (requested feature)
- 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
I'm ashamed I have to say: I made a mistake! Well, fixed that, new version!
Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02
Thanks so much for working this hard on this!
I definitely have plans to use this.
I definitely have plans to use this.
Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02
there are still some problems in Binary
to make it work 100% use this code:
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
- 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
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!
Anyone ideas for the client table?
EDIT: Where are my manners? Thanks!
-
- Prole
- Posts: 48
- Joined: Sun Feb 01, 2009 3:32 am
Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02
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.
- 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
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)
(also included in the download)
-
- Prole
- Posts: 48
- Joined: Sun Feb 01, 2009 3:32 am
Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02
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:
Client:
the connectCallback is
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.
Server:
Code: Select all
server:Init(26001)
server:setCallback(recCallback,connectCallback,disconnectCallback)
Code: Select all
client:Init(26001)
client:setCallback(recCallback,connectCallback,disconnectCallback)
client:connect('IP ADDRESS',26001,false)
client:send("hello!")
Code: Select all
function connectCallback()
message = "connected!"
end
Who is online
Users browsing this forum: No registered users and 3 guests