Friday, January 21, 2011
Fourth meeting
meeting time: 12:30 - 15:30
_Server interface_
- Easy to use
- Powerful
- Slow communication(Low proiority)
- Fast communication(High priority)
- Send key:values (nick, pms)
- Register callback (serverside) ball is moving, update graphics
- Inlogg med cookies or passwords - Master Cookie, optional
- loggout /shutdown same cookie as loggin
- upload methods - spidermonkey
_Internal_Interfaces_
- Javascript as pure text in memory
- access the world through a global object
- Store the world as ETS(erlang)
JS -> ERL -> ETS ->JS -> ...
_World_API_
API usage example:
users = [users]
world.p1.px = 2
world.foo.__set(2) user.send(2)
world.foo.__setter = function (a) {
erl_set("foo", 2)
}
Safety issues:
- Bad javascript
- No IO
- ETS
Communication requirements:
Communication between everyone, single or multiple clients.
_Server_interface_ runtime flow:
1. _Initialization_phase_
2. Message_phase_
-dictionary(JSON,PList, ...)
3. _User_login/logout_
Labels:
meeting
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment