作者:陈氏女子2602926065 | 来源:互联网 | 2023-10-13 17:24
iwanttowriteasimpleAppforme(Android).Forthisitisnecessarythattheservercansenddat
i want to write a simple App for me (Android). For this it is necessary that the server can send data to my client (only one client at a time) but unfortunately i have no idea how to use sockets or websockets with codename one. Can someone please post a small examplecode how to establish connection, listen on it and send some small data?
我想为我写一个简单的应用程序(Android)。为此,服务器必须能够将数据发送到我的客户端(一次只能有一个客户端),但不幸的是我不知道如何使用代号为1的套接字或websockets。有人可以发一个小示例代码如何建立连接,听取它并发送一些小数据?
greetings
Captain
2 个解决方案