开发者

Java ME, How to implement peer to peer communication?

The title is the question....开发者_StackOverflow中文版


You can open a ServerSocketConnection and a SocketConnection on the other side. This allow two way direct communication between two mobile phones. You can look at this page for some more details.

Possibly you can send the initial connection information by SMS and after that switch to socket communication.


Due to restrictions imposed by Network Operators, it will be impossible to have mobile phones talk directly to each other. So, you will need to implement an HTTP service that will act as the middle man.

The idea is that mobile phones will connect to the service and register. They will then use the service to discover other connecting phones. The service will finally proxy the conversation between two connected devices. A suitable software layer could make the whole process transparent.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜