Re: about the connection with afb-deamon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2018-08-10 10:15 GMT+02:00  <I37546_CHIN@xxxxxxxxxxxxxx>:
> Hi Jose

Hi ChenWei,

> I have a question about connection with afb-deamon at APP side.
> Is it possible that creating 2 or more connections(for e.g., by afb_ws_client_connect_wsj1())
> with same port/tokenID in one APP(I mean one process)?

I have never tried to do that since your question. So I tried and it
works. But I guess that you already reached that conclusion.

> We have cases that APIs are called for different functions at same time.
> I'd like to know if the reply from binder will be sent to the right requester when we do this.

Be aware that although opening many sockets works, it is not the
prefered way to use libafbwsc. The underlying protocol allows
interleaving of queries and responses and the the library already
takes care of that feature. Then opening onlmy one socket should be
enough even to handle several concurrent requests.

Nevertheless, I don't know your exact problem so I can not tell what
is the best solution. Anyway both solutions work.

Best regards
José

>
> If there are any troubles with this, we will try to keep one connection.
>
> Thanks/BR
> ChenWei
>
_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux