开发者

Ad-hoc communication (messaging) system over Android

开发者 https://www.devze.com 2023-01-25 11:21 出处:网络
I am looking for the feasibility of implemen开发者_StackOverflowting an ad-hoc type messaging service on Android. Basically I want a several Android users to be able to communicate (text is enough at

I am looking for the feasibility of implemen开发者_StackOverflowting an ad-hoc type messaging service on Android. Basically I want a several Android users to be able to communicate (text is enough at this point) without having a cellular connection. But there can be a centralized access point. For example a low-power computer with a wireless router.

What is the best way to implement something like this? I was thinking using XMPP. Could use the computer as the XMPP server and let Android users connect to it. Is this a reasonable approach?

Any suggestions are greatly welcomed. Thank you.


Adhoc and XMPP fit together in this context as follows: the network connections between the phones are adhoc; XMPP defines client to client server-less messaging. Two issues need be solved:

1) The adhoc Android connections - not clear to me if this is generally possible

2) Finding an XMPP Android client library that supports the xep-0174 protocols. The Smack library supports this, and I think it currently runs in Android.


Since you are using a centralized access point, it is straight forward, you open a socket connection between the different devices and exchange the data you need. I am not sure why you call it ad hoc though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号