Where is the latest client API?

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

RävenAB
Posts: 14
Joined: 28 May 2013, 14:41

Where is the latest client API?

Postby RävenAB » 12 Jun 2013, 14:50

Hi,

For some reason I can't find the latest client API for Unity (or for any other platform either for that matter). The installer for Windows does not contain the files. Or I'm I blind?

It seems the latest API on the updates page is out-of-date, as there is no PasswordUtil class in it. So there must be an API for 2.7.0, right?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Where is the latest client API?

Postby Lapo » 12 Jun 2013, 15:09

We don't distribute the client API with the server anymore, to make the installers as light as possible.
From our updates page you can download all the latest API versions:
www.smartfoxserver.com/download/sfs2x#p=updates

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
RävenAB
Posts: 14
Joined: 28 May 2013, 14:41

Re: Where is the latest client API?

Postby RävenAB » 12 Jun 2013, 15:17

I tried using that API and it does not include the PasswordUtil. Are the API's out-of-sync with each other?

By the way, if you are not including the client API's, you might consider changing the release text on your downloads page which clearly states the opposite :-)
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Where is the latest client API?

Postby Lapo » 12 Jun 2013, 15:45

Yes, the PasswordUtil class was released with the latest Flash API but we're finishing the other releases, so they aren't out yet.
Anyways the PasswordUtil class can be easily "emulated" like this:

Code: Select all

using System.Security.Cryptography;
...
private string MD5Hash(string instr)
{
   StringBuilder strHash = new StringBuilder(string.Empty);
               
    foreach (byte b in new MD5CryptoServiceProvider().ComputeHash(Encoding.Default.GetBytes(instr)))
   {
      strHash.Append(b.ToString("x2"));
   }
         
    return strHash.ToString();
}


By the way, if you are not including the client API's, you might consider changing the release text on your downloads page which clearly states the opposite

Right-o. Thanks for spotting :)
Lapo

--

gotoAndPlay()

...addicted to flash games
RävenAB
Posts: 14
Joined: 28 May 2013, 14:41

Re: Where is the latest client API?

Postby RävenAB » 12 Jun 2013, 16:05

Ok, thanks for the code snippet, worked as a charm.

If there are any other features lacking in the current Unity API it might be a good idea posting somewhere in which state each API is?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Where is the latest client API?

Postby Lapo » 12 Jun 2013, 16:25

No, there isn't anything else.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 84 guests