QtTcpsocket创建连接对象的构造函数与析构函数
1.QTcpSocket::QTcpSocket ( QObject * parent = 0 )
Creates a QTcpSocket object in state UnconnectedState.
parent is passed on to the QObject constructor.
See also socketType().
创建一个无连接的套接字状态对象。
QTcpSocket::~QTcpSocket () [virtual]
Destroys the socket, closing the connection if necessary.
See also close().
销除套接字的连接。
转载于:https://blog.51cto.com/qtlinux/574435