Server - C #, client - Flash, data exchange protocol

We are writing a multi-user online game in Flash. We wish the .Net server side, we need a duplex channel, so communication is performed using sockets.

Can you tell me some recommendations on the protocol / format of data exchange between the server and the client? IMO one of the best options might use JSON serialization.

+5
source share
3 answers

It depends. Forget the technologies involved for a while and focus on your specific needs. I hope you do not mind if I also study a few related points.

  • "-" (p2p). - , .
  • p2p: - ? , -?
  • . , , . ? ? ? .
  • : ?
  • . / ? (? ? Hi-speed?)
  • / : ? ( , .)

- , , , , , . , JSON, , @JustLogin.

Full-Duplex , / , , .

, , , , @Viacheslav, . ( JSON, , , , . )

, , UDP . , TCP, , , , .

TL; DR: , JSON, .

+3

, JSON , , .

-, JSON- , JSON "name: val", "<name> val </name>".

-, JSON . XML XML- , (HP, , AP, ..) .

-, ActionScript 3 (, MMO AS2) / JSON. XML- , IMO, JSON . , Flash 11+ JSON .

-, - MongoDB, BSON (Binary JSON), JSON .

+3

, .

-.

:

- . - . N

  • 4 , .
  • Download package body
  • Send package body to handle message type handler
+3
source

All Articles