AS3 Binary Socket?

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

thup
Posts: 25
Joined: 28 Jun 2006, 21:09
Contact:

AS3 Binary Socket?

Postby thup » 20 Nov 2006, 15:31

This isn't exactly a feature request, it's more of a question really.

Is the new AS3.0 Binary Socket class any faster than the XMLSocket class? Have you done any testing on using Smartfox with the Binary socket?

I'm wondering if there is less performance overhead, or even if it helps to decrease the byte size of the messaging?

So far on my Smartfox Pro project I never use XML, I try to be very obsessive about keeping my messaging as tight as possible (I use sendXtMessage, use constant 1 letter message names, bitwise flags for anything I can, etc) -- and I'm curious if there's been any investigation of using the new Socket class to make things even more concise.

Thanks in advance!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Nov 2006, 18:44

Is the new AS3.0 Binary Socket class any faster than the XMLSocket class? Have you done any testing on using Smartfox with the Binary socket?

Yes it is. Haven't done specific tests in that area but of course the new JIT compiler inside the AVM2 boost the performance quite a bit! 8)

The current client AS 3.0 APIs do use the binary socket classes, not the XMLSocket. :)
I'm wondering if there is less performance overhead, or even if it helps to decrease the byte size of the messaging?

Yeah, we have plans to switch to a fully binary protocol that can be turned on/off depending if you use an AS 3.0 client or not.
This will definitely save a lot of bandwidth.
So far on my Smartfox Pro project I never use XML, I try to be very obsessive about keeping my messaging as tight as possible

Sure, it's the right approach.
Lapo
--
gotoAndPlay()
...addicted to flash games
thup
Posts: 25
Joined: 28 Jun 2006, 21:09
Contact:

Postby thup » 20 Nov 2006, 20:17

Great to hear, thanks much Lapo :)
Sanxion
Posts: 17
Joined: 02 Feb 2007, 10:52

Postby Sanxion » 02 Feb 2007, 10:55

Excellent news, but when is this feature released?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Feb 2007, 11:14

This will be part of a major new release. It's still a bit "top secret" :)
Anyways, as of now, we don't have a release date.

Side note: we have received many requests about the binary protocol, as many people feels that binary is somehow better.
Of course in various cases it can be better, however if you take a look at FMS binary data and you compare it to our JSON or String protocol you won't find much difference in message size. In many cases the String protocol can be smaller than a regular AMF packet.
Lapo

--

gotoAndPlay()

...addicted to flash games
Belgarath
Posts: 28
Joined: 25 Apr 2006, 14:38

Postby Belgarath » 12 Feb 2007, 20:18

Do we gain the possibilty to transfer byteArrays (like bitmapData) then? So as to send the data direct to the extension and not over the integrated webserver?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 13 Feb 2007, 08:34

Yes! :D
Lapo

--

gotoAndPlay()

...addicted to flash games
Belgarath
Posts: 28
Joined: 25 Apr 2006, 14:38

Postby Belgarath » 13 Feb 2007, 17:51

Damn thats freakin' great news :D ... There's probably still no release date? :wink: :wink:
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Postby patso » 15 Feb 2007, 06:13

Belgarath wrote:Do we gain the possibilty to transfer byteArrays (like bitmapData) then? So as to send the data direct to the extension and not over the integrated webserver?

You can send binary data even with AS2 API - you just need to use some king of encoding - base 64 for example.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Feb 2007, 08:11

Nice suggestion, patso :)

Here's a base64 implementation in AS 2.0
--> http://blog.jasonnussbaum.com/?p=108
Lapo

--

gotoAndPlay()

...addicted to flash games
Boing
Posts: 59
Joined: 11 Apr 2008, 14:57

Postby Boing » 19 Dec 2008, 13:31

From the SFS Pro Tutorial 8.17 "Socket File Loader":
In order to maintain compatibility with older versions of the Flash Player, SmartFoxServer doesn't support a full binary protocol, yet. In fact, as of today (December 2007), the number of applications and games done in Actionscript 3 are still a small percentage compared to those created in AS 2.0. In future releases SmartFoxServer PRO will definitely support the new binary sockets provided by the Flash Player 9.

Any news on binary sockets?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 09 Jan 2009, 09:54

They are coming with the next major version (aka 2.0) of the Server, together with tons more stuff :)
If everything goes well we'll announce more details during next Spring.

Stay tuned
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
thecreatrix
Posts: 19
Joined: 20 Aug 2008, 02:32
Contact:

Postby thecreatrix » 26 Feb 2009, 02:47

I hope that 2.0 will also include UDP support for the Unity API (and others that are not ActionScript)! :)
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Feb 2009, 05:56

Yes it will
Lapo

--

gotoAndPlay()

...addicted to flash games
flarb
Posts: 131
Joined: 15 Oct 2007, 21:07
Location: Home of the Body Bag
Contact:

2.0......?

Postby flarb » 09 Jul 2009, 14:42

So what's up with 2.0?

Seems like it will be a major change that I'll have to prepare for...I'd like to know when it may come out. As I'd really like to re-do my network protocol to be all binary.

Also--I really think you need to include an encryption option on the server as well. Maybe you can request a public key on the server, much like you can request a random number. And then use that to encrypt/decrypt all the traffic.

Return to “Features Wish List”

Who is online

Users browsing this forum: No registered users and 15 guests