QTcpSocket类中文参考(二)

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().

销除套接字的连接。

 

你可能感兴趣的:(类,职场,休闲,QTcpSocket,中文参考)