D
D
Dmitry2016-07-01 19:01:39
Java
Dmitry, 2016-07-01 19:01:39

How to implement peer-to-peer chat in android?

Good day. In touch is not very smart novice android developer. I wanted to get a job in one IT office for the summer (I wanted to work on a free basis), and after the interview I was given the task - to write a chat for android. The main condition is that it works within the local network, and is built on the p2p principle (Another requirement is authorization through social networks, but more on that another time). So. At the moment I am trying to write a chat using the udp protocol. That is, there are two devices with running applications, I find out the recipient's local ip, and write a message to him, and send it. And he gets it. I have already found a method for getting a local ip, but, in fact, what should I do next? How to approach this project? I will be immensely grateful to all those who respond to my question. Articles and sources are welcome.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-07-01
@Homelesschicken

Learn the concepts of broadcast, multicast, unicast.
Where and how are they applied and how do they differ.
PS: You don't need to get a local IP! It will be in the package that arrived.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question