}
Q_LONG cAsyncNetIOPrivate::writeBlock( const char *data, Q_ULONG len ){	// Invalid Socket -> Disconnected	if( !socket->isValid() )		return 0;    if ( len == 0 )		return 0;	    QByteArray *a = wba.last();	    if ( a && a->size() + len < 128 ) 	{		// small buffer, resize		int i = a->size();		a->resize( i+len );		memcpy( a->data()+i, data, len );    } else {		// append new buffer		a = new QByteArray( len );		memcpy( a->data(), data, len );		wba.append( a );    }    wsize += len;    return len;}