¡@

Home 

c++ Programming Glossary: tcpsocketptr

Where to delete QTcpSocket in thread to avoid valgrind errors

http://stackoverflow.com/questions/19280903/where-to-delete-qtcpsocket-in-thread-to-avoid-valgrind-errors

in the run method of the QThread void TelnetConnection run tcpSocketPtr new QTcpSocket if tcpSocketPtr setSocketDescriptor socketDescriptor.. void TelnetConnection run tcpSocketPtr new QTcpSocket if tcpSocketPtr setSocketDescriptor socketDescriptor emit error tcpSocketPtr.. setSocketDescriptor socketDescriptor emit error tcpSocketPtr error return .... When my app wants to disconnect the client..