本文整理汇总了C++中SocketInputStream类的典型用法代码示例。如果您正苦于以下问题:C++ SocketInputStream类的具体用法?C++ SocketInputStream怎么用?C++ SocketInputStream使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SocketInputStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Read
BOOL GCItemInfo::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)(&m_BagIndex), sizeof(WORD));
iStream.Read((CHAR*)(&m_nsNull), sizeof(BOOL));
m_ITEM.Read(iStream);
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例2: Read
BOOL GCNewPlatform::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
iStream.Read( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
iStream.Read( (CHAR*)(&m_Dir), sizeof(FLOAT));
iStream.Read( (CHAR*)(&m_Type), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例3: Read
BOOL GCPlayerShopAcquireShopList::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_NpcId), sizeof(ObjID_t));
iStream.Read( (CHAR*)(&m_ShopNum), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_ComFactor), sizeof(FLOAT));
iStream.Read( (CHAR*)(m_ShopList), sizeof(SHOP_INFO_t)*m_ShopNum);
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例4: Read
BOOL GCPlayerShopMoney::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
iStream.Read( (CHAR*)(&m_Type), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_Amount), sizeof(UINT));
iStream.Read( (CHAR*)(&m_nShopSerial), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例5: Read
BOOL GWCityOpt::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_Opt), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_CityGuid), sizeof(_CITY_GUID));
iStream.Read( (CHAR*)(m_iParam), sizeof(INT)*MAX_IPARAM_NUM);
iStream.Read( (CHAR*)(m_szParam), sizeof(CHAR)*MAX_SZPARAM_LENGTH);
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例6: Read
BOOL CGPlayerShopOpenStall::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
iStream.Read( (CHAR*)(&m_nStallIndex), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_bOpen), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_nShopSerial), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例7: Read
VOID X_PARAM::Read( SocketInputStream &iStream )
{
iStream.Read( (CHAR*)&m_IntCount, sizeof(BYTE) );
iStream.Read( (CHAR*)&m_StrCount, sizeof(BYTE) );
if( m_IntCount>0 )
{
iStream.Read( (CHAR*)&m_aIntValue, sizeof(INT)*m_IntCount );
}
if( m_StrCount>0 )
{
iStream.Read( (CHAR*)&m_aStrOffset, sizeof(SHORT)*m_StrCount );
iStream.Read( (CHAR*)&m_aStrValue, sizeof(CHAR)*(m_aStrOffset[m_StrCount-1]+1) );
}
}
示例8: Read
BOOL GCBankAddItem::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_FromType), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_indexFrom), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_indexTo), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_OperateType), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例9: Read
BOOL GCNewSpecial::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
iStream.Read( (CHAR*)(&m_posWorld), sizeof(m_posWorld));
iStream.Read( (CHAR*)(&m_Dir), sizeof(m_Dir));
iStream.Read( (CHAR*)(&m_nDataID), sizeof(m_nDataID));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例10: Read
BOOL GCSouXiaSkillUpdate::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)(&m_nCurSouXiaPos), sizeof(SHORT));
iStream.Read((CHAR*)(&m_nSkillType), sizeof(BYTE));
iStream.Read((CHAR*)(&m_nSkillId), sizeof(SkillID_t));
iStream.Read((CHAR*)(&m_nLeftTime), sizeof(SHORT));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例11: Read
BOOL WGChannelResult::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_PlayerID), sizeof(PlayerID_t) ) ;
iStream.Read( (CHAR*)(&m_Return), sizeof(BYTE) ) ;
iStream.Read( (CHAR*)&m_GUID, sizeof(GUID_t) );
iStream.Read( (CHAR*)&m_ChannelID, sizeof(ChannelID_t) );
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例12: Read
BOOL GCNewPet::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
iStream.Read( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
iStream.Read( (CHAR*)(&m_fDir), sizeof(FLOAT));
iStream.Read( (CHAR*)(&m_fMoveSpeed), sizeof(m_fMoveSpeed));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例13: Read
BOOL GCStallItemPrice::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
iStream.Read( (CHAR*)(&m_PetGuid), sizeof(PET_GUID_t));
iStream.Read( (CHAR*)(&m_nPrice), sizeof(UINT));
iStream.Read( (CHAR*)(&m_nSerial), sizeof(UINT));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例14: Read
BOOL WLBillingEnd::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)&mAccount,sizeof(CHAR)*(MAX_ACCOUNT+1));
iStream.Read((CHAR*)&mCharLevel,sizeof(USHORT));
iStream.Read((CHAR*)&mEndType,sizeof(BYTE));
iStream.Read((CHAR*)&mStartTime,sizeof(UINT));
iStream.Read((CHAR*)&mEndTime,sizeof(UINT));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
示例15: Read
BOOL CGShopBuy::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_nndex), sizeof(BYTE));
iStream.Read( (CHAR*)(&m_uSerialNum), sizeof(m_uSerialNum));
iStream.Read( (CHAR*)(&m_UniqueID), sizeof(UINT));
iStream.Read( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
iStream.Read( (CHAR*)(&m_BuyNum), sizeof(UINT));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}