Qt

Improve state and error conditions of QAbstractSocket