Send data using Tcp/Udp

前端 未结 2 781
野趣味
野趣味 2021-02-11 03:12

Here is my scenario.

I have my device (android phone). And I know the IP address of another device (which is some remote device in the Internet)

So how do I sen

2条回答
  •  甜味超标
    2021-02-11 03:42

    In most realistic cases, you send data to the other device by sending the data to an intermediate device from which the other phone picks it up. Can can use protocols like TCP or UDP directly between the two devices, and that may or may not work depending on the protocols and how the devices are getting Internet access.

    For example, one device can send an email and the other device can retrieve that email. You can generalize that model to other types of communication.

提交回复
热议问题