C++ (Qt)void KTcpSocket::connectToHostImplementation(const QString &hostName, quint16 port, OpenMode openMode){ setOpenMode(openMode); socket.connectToHost(hostName, port, openMode);} void KTcpSocket::diconnectFromHostImplementation(){ socket.disconnectFromHost();}
C++ (Qt) QByteArray readLine (qint64 maxSize = 0) { return socket.readLine(maxSize); } qint64 readLine(char *data, qint64 maxSize) { return socket.readLine(data, maxSize); }