Az önce biraz inceledim. Aradigin sey
cSocket.cpp icersinde bulunan asagidaki fonksiyon olmali veya en azindan burdan devam edebilirsin. Ben daha fazla incelemedim cünkü. Bir bakiver.
UI32 DoPack( UI08 *pIn, UI08 *pOut, int len )
{
UI32 packedLength = 0;
int bitByte = 0;
int nrBits;
UI32 value;
while( len-- )
{
nrBits = bit_table[*pIn][0];
value = bit_table[*pIn++][1];
while( nrBits-- )
{
pOut[packedLength] = static_cast<UI08>((pOut[packedLength] << 1) | (UI08)((value >> nrBits) & 0x1));
bitByte = (bitByte + 1) & 0x07;
if( !bitByte )
++packedLength;
}
}
nrBits = bit_table[256][0];
value = bit_table[256][1];
while( nrBits-- )
{
pOut[packedLength] = static_cast<UI08>((pOut[packedLength] << 1) | (UI08)((value >> nrBits) & 0x1));
bitByte = (bitByte + 1) & 0x07;
if( !bitByte )
++packedLength;
}
if( bitByte )
{
while( bitByte < 8 )
{
pOut[packedLength] <<= 1;
++bitByte;
}
++packedLength;
}
return packedLength;
}
NOT: UOX ile herhangi bir tecrübem yok, o nedenle sadece asagi yukari tahminden ibaret. Kesin bir sey söylemek icin, sistemin tamamini birkac gün incelemek gerekir heralde.