Socket methods are using QByteArray