当前位置: 首页>>代码示例>>C++>>正文


C++ SocketInputStream类代码示例

本文整理汇总了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 ;
}
开发者ID:viticm,项目名称:web-pap,代码行数:15,代码来源:GCItemInfo.cpp

示例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 ;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:15,代码来源:GCNewPlatform.cpp

示例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 ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:15,代码来源:GCPlayerShopAcquireShopList.cpp

示例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 ;
}
开发者ID:rvpoochen,项目名称:wxsj2,代码行数:15,代码来源:GCPlayerShopMoney.cpp

示例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 ;
}
开发者ID:brock7,项目名称:TianLong,代码行数:15,代码来源:GWCityOpt.cpp

示例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 ;
}
开发者ID:brock7,项目名称:TianLong,代码行数:15,代码来源:CGPlayerShopOpenStall.cpp

示例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) );
    }
}
开发者ID:gangzi4494,项目名称:web-pap,代码行数:15,代码来源:GameStruct_Script.cpp

示例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 ;
}
开发者ID:viticm,项目名称:web-pap,代码行数:15,代码来源:GCBankAddItem.cpp

示例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 ;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:15,代码来源:GCNewSpecial.cpp

示例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 ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:15,代码来源:GCSouXiaSkillUpdate.cpp

示例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 ;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:15,代码来源:WGChannelResult.cpp

示例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 ;
}
开发者ID:gangzi4494,项目名称:web-pap,代码行数:15,代码来源:GCNewPet.cpp

示例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 ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:15,代码来源:GCStallItemPrice.cpp

示例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 ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:16,代码来源:WLBillingEnd.cpp

示例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 ;
}
开发者ID:brock7,项目名称:TianLong,代码行数:16,代码来源:CGShopBuy.cpp


注:本文中的SocketInputStream类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。