Discussion Board
-
how can i get server's return bytes
2003-12-18, 10:23
#1
Registered User
server response :
0x36 0x00 0x30 0x00 0x30 0x00
i want to transfer it to "600"?
help me !
my get stream method below:
HBufC8 * CDataInputStream::ReadFullyLC(TInt count) {
TInt check = ReadL();
TInt nowCount = 1;
if ( check == -1 )
return( NULL );
HBufC8 * result = NULL;
while ( ( check != -1 ) && nowCount < count) {
if ( result == NULL )
result = HBufC8::NewLC( 20 );
TPtr8 test = result->Des();
if ( test.Length() == test.MaxLength() ) {
HBufC8 * temp = HBufC8::NewL( result->Length() * 2 );
temp->Des().Copy( *result );
CleanupStack::PopAndDestroy( result );
result = temp;
CleanupStack::PushL( result );
}
TPtr8 data = result->Des();
data.Append( check );
check = ReadL();
nowCount++;
}
if ( result == NULL )
result = HBufC8::NewLC( 1 );
return( result );
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules