Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtcpsocket.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//#define QTCPSOCKET_DEBUG
5
31#include "qtcpsocket.h"
32#include "qtcpsocket_p.h"
33#include "qlist.h"
34#include "qhostaddress.h"
35
37
46 : QAbstractSocket(TcpSocket, *new QTcpSocketPrivate, parent)
47{
48#if defined(QTCPSOCKET_DEBUG)
49 qDebug("QTcpSocket::QTcpSocket()");
50#endif
51 d_func()->isBuffered = true;
52}
53
61{
62#if defined(QTCPSOCKET_DEBUG)
63 qDebug("QTcpSocket::~QTcpSocket()");
64#endif
65}
66
71 : QAbstractSocket(TcpSocket, dd, parent)
72{
73 d_func()->isBuffered = true;
74}
75
84
86
87#include "moc_qtcpsocket.cpp"
The QAbstractSocket class provides the base functionality common to all socket types.
SocketType
This enum describes the transport layer protocol.
\inmodule QtCore
Definition qobject.h:103
QTcpSocket(QObject *parent=nullptr)
Creates a QTcpSocket object in state UnconnectedState.
virtual ~QTcpSocket()
Destroys the socket, closing the connection if necessary.
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE const char * socketType(QSocketNotifier::Type type)
#define qDebug
[1]
Definition qlogging.h:164