Game Protocol

For discussions about game development that does not fit in any of the other topics.
Post Reply
Genaga
Posts: 86
Joined: Fri Dec 11, 2009 7:05 pm

Game Protocol

Post by Genaga »

What is your idea of a decent protocol between client and server?

Of course it should be minimal and stuff but wondering how to go about mine was thinking something like this.

Header Char2 arg1 char2 arg2 char2 arg3 char1

E.g.

LO[2]ussername[2]password[1]

But wondering if there is a better way to go about it?
jpoisson
Posts: 245
Joined: Sun Aug 02, 2009 5:12 pm

Re: Game Protocol

Post by jpoisson »

Your explanation is very vague on what you are requesting. What languages are you using for your Server and client? What is it all for? what type of set up are you looking for?

Is this through a browser? if so why are you creating a client when the browser is already the client.

now I am looking into different protocols and none of them are as simple as you think. I may be able to help you if you give a little more information.
Genaga
Posts: 86
Joined: Fri Dec 11, 2009 7:05 pm

Re: Game Protocol

Post by Genaga »

I mean the way a client interact with a server. For example the client will tell the server it wants to login but you can;t just send "usernamepassword" because that will be just a word and the server won't know what do with it.

If the client sends a header to designate what its supposed to do e.g. "LO" and a seperating char and then the user name and seperating char and the password.

The server will do

string[] blah = recievedpacket.split(seperatingpacket);

Then
blah[0] would equal header
blah[1] would equal username
blah[2] would equal password

I am looking for the most effective way to send the data. I was thinking about doing B64 lengths.
Post Reply

Return to “General Development”