How can I use AIDL remote service to deal with defferent clients' concurrent requests?

前端 未结 2 1363
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 10:29

I\'m writting a plug-in which defines a remote Service and provides a AIDL interface for 3rd party developers.

How can I use this remote service to deal with deffer

2条回答
  •  北海茫月
    2020-12-19 11:19

    Not much different than writing a multi-threaded server. You keep thread local state for each client, and maybe give them some sort of session ID so you know who you are talking to.

提交回复
热议问题