BOOL LBBillingKeep::Write( SocketBillingOutputStream& oStream ) const { __ENTER_FUNCTION oStream.Write( (CHAR*)(&mAccLength), sizeof(BYTE)); oStream.Write( (CHAR*)(mAccount), sizeof(CHAR)*mAccLength); USHORT CharLevel = htons(mCharLevel); oStream.Write( (CHAR*)(&CharLevel),sizeof(USHORT)); UINT StartTime = htonl(mStartTime); oStream.Write( (CHAR*)(&StartTime),sizeof(UINT)); UINT EndTime = htonl(mEndTime); oStream.Write( (CHAR*)(&EndTime),sizeof(UINT)); return TRUE ; __LEAVE_FUNCTION return FALSE ; }
BOOL LBConnect::Write( SocketBillingOutputStream& oStream ) const { __ENTER_FUNCTION USHORT zoneid = htons(mZoneID); oStream.Write((CHAR*)&zoneid,sizeof(zoneid)); USHORT worldid = htons(mWorldID); oStream.Write((CHAR*)&worldid,sizeof(worldid)); if(mIPSize>MAX_BILLING_IP_SIZE) { BYTE maxsize = MAX_BILLING_IP_SIZE; oStream.Write((CHAR*)&maxsize,sizeof(BYTE)); oStream.Write(mIP,maxsize); } else { oStream.Write((CHAR*)&mIPSize,sizeof(mIPSize)); oStream.Write(mIP,mIPSize); } return TRUE ; __LEAVE_FUNCTION return FALSE ; }
BOOL LBAskBuy::Write( SocketBillingOutputStream& oStream ) const { __ENTER_FUNCTION oStream.Write( (CHAR*)(&mAccLength), sizeof(BYTE)); oStream.Write( (CHAR*)(mAccount), sizeof(CHAR)*mAccLength); oStream.Write( (CHAR*)(&mIPLength),sizeof(BYTE)); oStream.Write( (CHAR*)(mIP),sizeof(CHAR)*mIPLength); oStream.Write( (CHAR*)(&mCharNameLength),sizeof(BYTE)); oStream.Write( (CHAR*)(mCharName),sizeof(CHAR)*mCharNameLength); oStream.Write( (CHAR*)(mPrizeSerial),sizeof(CHAR)*MAX_PRIZE_SERIAL_LENGTH); USHORT uGoodsTypeNum = htons(mGoodsTypeNum); oStream.Write( (CHAR*)(&uGoodsTypeNum),sizeof(USHORT)); UINT uGoodsType = htonl(mGoodsType); oStream.Write( (CHAR*)&uGoodsType,sizeof(UINT)); USHORT uGoodsNum = htons(mGoodsNumber); oStream.Write( (CHAR*)(&uGoodsNum),sizeof(USHORT)); UINT uCostPoint = htonl(mCostPoint); oStream.Write( (CHAR*)(&uCostPoint),sizeof(UINT)); return TRUE ; __LEAVE_FUNCTION return FALSE ; }
BOOL LBRegPassPort::Write( SocketBillingOutputStream& oStream ) const { __ENTER_FUNCTION oStream.Write( (CHAR*)(&mAccLength), sizeof(BYTE)); oStream.Write( (CHAR*)(mAccount), sizeof(CHAR)*mAccLength); oStream.Write( (CHAR*)(&mSuperPwLength), sizeof(BYTE)); oStream.Write( (CHAR*)(mSuperPw), sizeof(CHAR)*mSuperPwLength); oStream.Write( (CHAR*)(&mPwLength), sizeof(BYTE)); oStream.Write( (CHAR*)(mPwMd5), sizeof(CHAR)*mPwLength); oStream.Write( (CHAR*)(&mIPLength),sizeof(BYTE)); oStream.Write( (CHAR*)(mIP),sizeof(CHAR)*mIPLength); oStream.Write( (CHAR*)(&mEmailLength),sizeof(BYTE)); oStream.Write( (CHAR*)(mEmail),sizeof(CHAR)*mEmailLength); USHORT oL = htons(mOtherInfo1Length); oStream.Write( (CHAR*)(&oL), sizeof(USHORT)); oStream.Write( (CHAR*)(mOtherInfo1), sizeof(CHAR)*mOtherInfo1Length); oL = htons(mOtherInfo2Length); oStream.Write( (CHAR*)(&oL), sizeof(USHORT)); oStream.Write( (CHAR*)(mOtherInfo2), sizeof(CHAR)*mOtherInfo2Length); oL = htons(mOtherInfo3Length); oStream.Write( (CHAR*)(&oL), sizeof(USHORT)); oStream.Write( (CHAR*)(mOtherInfo3), sizeof(CHAR)*mOtherInfo3Length); return TRUE ; __LEAVE_FUNCTION return FALSE ; }