
Originally Posted by
rooski
no not api just what the server runs and how it trasfers items. i have no idea what they use , its flash and a google run/based server. other than that i have no idea how it works
You don't sound like a cs major.. lol..
Anyways, the client communicates with the server with a variety of predefined packet structs (72 or something)
There are a few used for trading:
TradeRequest : Client -> Server : To send a trade request to another server
TradeRequested : Server-> Client : Server tells the user that you want to trade
TradeAccepted : Client - > Server : The other user has complied with the trade
TradeStart : Server -> Client : Tells the client that the trade has started
ChangeTrade : Client -> Server : Client telling the server that its selected items for trade have changed
TradeChanged : Server -> Client : Server telling client that their trader has selected/deselected items
TradeAccept : Client -> Server : Client accepts the trade
TradeAccepted : Server -> Client : Server tells client that trader has accepted
TradeDone : Server -> Client : Server tells the client the trade is over
Of course each packet carries important data like items etc, you can find that in DevoidCoders Realm Relay source.