TcpSocket

Description

The TcpSocket object TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data. See the IpSocket documentation for all supported properties, methods and signals.

This object was introduced in InCore 2.3.

› Inherits:IpSocket

Properties

Example

import InCore.Foundation 2.5

TcpSocket {
    hostname: "10.1.2.3"
    port: 80

    onConnected: write("GET / HTTP/1.1\nHost: 10.1.2.3\n\n")
    onReadyRead: console.log(readAll())
}