在Flutter应用程序和桌面Java应用程序之间发送/接收数据。

huangapple 未分类评论49阅读模式
标题翻译

Send/Receive data between a Flutter app and a desktop Java application

问题

我需要制作一个移动应用程序,其中:

  • 在同一网络上发现其他桌面设备;
  • 连接到这些桌面设备并向它们发送数据;
  • 它允许被桌面应用程序发现;
  • 接收来自该桌面应用程序的数据。

我需要做一些类似 YouTube 或 Spotify 的事情,就像它们可以找到可用的电视一样,连接到其中之一并向其发送命令。

我明白为了实现这一点,我需要一个移动应用程序和一个客户端(在桌面上运行)。但是我确实不知道这种类型功能的基本实现方式是什么,无论是在移动端使用 Flutter(如果可能的话),还是在桌面端使用 Java(同样如果可能的话)。

如果在 Flutter/Java 中无法实现,也可以使用支持 Android 的其他移动/桌面技术,但理想情况下仍然是使用 Flutter/Java。

我感谢任何帮助,因为关于连接性、网络、WiFi、点对点等方面,我了解得不多。

英文翻译

I need to make a Mobile App that:

  • Discover other Desktops on the same network;
  • Connect with these Desktops and send data to them;
  • It allows to be discovered by a Desktop application;
  • Receive data from this Desktop application.

I need to do something like YouTube or Spotify where the available televisions are found, connect to one of them and send commands to it.

I understand that for that I need both a Mobile App and a client (that is running on the Desktop), but I am really at a loss as to what would be a basic implementation of this type of functionality with both Flutter for the Mobile part (if it is that it is possible to do this with Flutter) and with Java for the Desktop part (also if it is possible to do this with Java).

If it is not possible with Flutter/Java it can also be with another pair of Mobile/Desktop technologies that support Android, but the ideal is that it is even with Flutter/Java.

I appreciate any help, because with regard to that part of connectivity, network, wifi, p2p, etc., I don't have much knowledge.

huangapple
  • 本文由 发表于 2020年3月17日 00:25:14
  • 转载请务必保留本文链接:https://java.coder-hub.com/60709664.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定