On this page

QTcpSocketWrapper Class

A wrapper around QTcpSocket. More...

Header: #include <qtcpsocketwrappertask.h>
Inherits: QObject

Note: All functions in this class are reentrant.

Signals

void done(QtTaskTree::DoneResult result)
void started()

Detailed Description

QTcpSocketWrapper is a convenient wrapper around QTcpSocket.

Configure the QTcpSocketWrapper with setAddress(), setPort(), and setData() before calling start().

The wrapped QTcpSocket may be accessed via socket() method. The QTcpSocket is created dynamically by the start() method and managed by QTcpSocketWrapper. It is deleted just after emitting done() signal.

Member Function Documentation

[signal] void QTcpSocketWrapper::done(QtTaskTree::DoneResult result)

This signal is emitted after the associated QTcpSocket finished. The passed result indicates whether it has finished with success or an error.

See also socket().

[signal] void QTcpSocketWrapper::started()

This signal is emitted after the managed QTcpSocket is connected.

See also start().

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.