1

I'm working on a card game and it seems like actors - specifically remote actors - would be a good fit. I'm having trouble figuring out how to implement the notion of logging in using remote actors. If a player starts up a fat client and enters a username and password, what should happen next? Should the client:

  • have a User remote actor where some state changes to represent a successful login?
  • call a method on an Authentication remote actor and get back a handle to a logged in User remote actor?
  • something else entirely?

I'm also wondering how this would fit in with reconnecting after a network issue.

4

1 回答 1

1

向已知的远程参与者发送身份验证消息,如果成功,他会回复您可以与之交谈的参与者,如果登录失败,则会发送失败消息。利润

于 2011-08-21T00:27:09.527 回答