[RCF::Session] How call disconnect on other session?
Posted: Thu Jan 09, 2014 5:52 am
Scenario:
1) Client1 call rpc-method "Login" with parameters: login = "user", password = "123".
2) RcfServer create "RcfSession1" with parameters: login = "user".
3) RcfServer create TokenId and send this to Client1.
4) Client2 call rpc-method "Login" with parameters: login = "user", password = "123".
5) RcfServer create "RcfSession2" with parameters: login = "user".
6) RcfServer determines that this user is already running (login same). RcfServer call method "dissconnect" for session "RcfSession1".
7) RcfServer create TokenId and send this to Client2.
How to implement paragraph 6 ?
1) Client1 call rpc-method "Login" with parameters: login = "user", password = "123".
2) RcfServer create "RcfSession1" with parameters: login = "user".
3) RcfServer create TokenId and send this to Client1.
4) Client2 call rpc-method "Login" with parameters: login = "user", password = "123".
5) RcfServer create "RcfSession2" with parameters: login = "user".
6) RcfServer determines that this user is already running (login same). RcfServer call method "dissconnect" for session "RcfSession1".
7) RcfServer create TokenId and send this to Client2.
How to implement paragraph 6 ?