首页| 论坛| 消息

标题:qml-sockets
作者:hp_201111
日期:2019-09-29 23:28
内容:

https://github.com/jemc/qml-sockets
import Sockets 1.0
TCPSocket {
    host: "www.the-world.com"
    port: 1025
    Component.onCompleted: connect()
    onConnected: write("Hello, World!")
    onRead: console.log("The World says:", message)
    onDisconnected: console.log("Goodbye, Cruel World...")
}


#1 [lsyzsl 10-05 10:45]
怎么使用啊大佬?

回复 发表
主题 版块