mön , your example was exactly what I needed. Thank you very much. Simple, bare-bones, and gives me something to build on.
[edit]... and now I've got the functionality I needed working flawlessly. Awesome!
--Mr. Strange
LUBE (Networking Library)
-
- Party member
- Posts: 101
- Joined: Mon Aug 11, 2008 5:19 am
Re: LUBE (Networking Library)
Urgh?! Anyone else getting errors?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
At line 106 the server:update function calls self:receive(), so unless you tried to do something with the table (like creating derivatives) and that went wrong the only thing can think of is using server.update instead of server:update (the last one being the correct one), but I thought it would give an error? On second thought, are you using your own protocol?
EDIT: I mean, do you use udp (the standard value to init)
EDIT: I mean, do you use udp (the standard value to init)
Re: LUBE (Networking Library)
Using mön example, is it normal for it show "Client has disconnected" when another client connects? Doesn't seem right :/
Also what's this handshake business? It just a string to compare to server or something?
Also what's this handshake business? It just a string to compare to server or something?
Re: LUBE (Networking Library)
probably you're trying to connect several times from the same ip. the Clients table in the Server.lua uses the ip as key and disconnects if an ip which is connected sends a handshake. it should work if youre clients run on different machines.Ripe wrote:is it normal for it show "Client has disconnected" when another client connects?
hmmmm... whats a handshake? i think its something that shows the server that a client wants to connect. or disconnect?
Re: LUBE (Networking Library)
No, do you have the version before this? I think that it's just the latest version is fucked.bartbes wrote:At line 106 the server:update function calls self:receive(), so unless you tried to do something with the table (like creating derivatives) and that went wrong the only thing can think of is using server.update instead of server:update (the last one being the correct one), but I thought it would give an error? On second thought, are you using your own protocol?
EDIT: I mean, do you use udp (the standard value to init)
(or, it could be that LOVE doesn't even come with the socket module and I need it, in that case where can I get it?)
Re: LUBE (Networking Library)
Nevermind, works now...
(sneaky fix? )
(sneaky fix? )
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
No... it's an inbuilt virus....Kudomiku wrote:(sneaky fix? )
Seriously though, I haven't changed it.
About those handshakes, it is indeed meant for authentication, and as I noted in the docs (which I still need to upload ) the connections are limited to 1 client per IP.
I know it is limited, and I might easily at "open" and "close" handshakes, the problem is that the server identifies clients by ip at the moment, as this is much faster compared to manually running through all the clients in the table (even though it may be just 3). So, when I'll get a new idea to handle this, or one of you submits a good idea, I'll implement that. For now it is not hard to change this in the sources yourself (or overwrite them in your program), just figure out an effective way to store clients in the Clients table.
@mön: So, you're going to support now? Probably a good thing as I can only check here about 1 time/day at the moment.
@anyone wondering what I'm doing now: Lying in bed recovering ... (no nothing bad, probably just the flu)
Re: LUBE (Networking Library)
http://www.independent.co.uk/life-style ... 72809.htmlbartbes wrote:no nothing bad, probably just the flu
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LUBE (Networking Library)
I was thinking about those clients... and the best options I can think of are:
- Keep it as it is now
- Use some kind of UUID (not a fancy one, it might be an SID or something similar)
- Just ignore the inefficiency and don't create a game supporting 60 players over the internet (S*NY/SON*, I wonder what I meant )
- -tag:
EDIT: Clarification:
Code: Select all
[list= 1] (without the space) --> numbered [list= A] (again, no space) --> lettered (don't know how to describe it, not my native language)
UUID=Unique User ID
SID=Session ID
ID= not worth my time typing (I know this takes longer)
EDIT2: I'll start using version numbers from my next release on.. but be ready for 0.000001 (will most likely be 0.01a or something)
EDIT NUMBER SOMETHING: I keep finding typo's, and grammar mistakes (or erorrs??) I'll just stop trying to make this post perfect.
Who is online
Users browsing this forum: Google [Bot] and 4 guests