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


C++ SocketInputStream::Read方法代码示例

本文整理汇总了C++中SocketInputStream::Read方法的典型用法代码示例。如果您正苦于以下问题:C++ SocketInputStream::Read方法的具体用法?C++ SocketInputStream::Read怎么用?C++ SocketInputStream::Read使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SocketInputStream的用法示例。


在下文中一共展示了SocketInputStream::Read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Read

BOOL GCCharIdle::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_bMustStop), sizeof(BOOL));

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
开发者ID:gangzi4494,项目名称:web-pap,代码行数:14,代码来源:GCCharIdle.cpp

示例2: Read

BOOL CGAskTeamMemberInfo::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t) ) ;
	iStream.Read( (CHAR*)&m_GUID, sizeof(GUID_t) );
	iStream.Read( (CHAR*)&m_SceneID, sizeof(SceneID_t) );

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
开发者ID:brock7,项目名称:TianLong,代码行数:14,代码来源:CGAskTeamMemberInfo.cpp

示例3: Read

BOOL GCBankRemoveItem::Read( SocketInputStream& iStream ) 
{
    __ENTER_FUNCTION

    iStream.Read( (CHAR*)(&m_ToType), 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:gangzi4494,项目名称:web-pap,代码行数:14,代码来源:GCBankRemoveItem.cpp

示例4: Read

BOOL GCNewItemBox::Read( SocketInputStream& iStream ) 
{
	__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
	iStream.Read( (CHAR*)(&m_idOwner), sizeof(GUID_t));
	iStream.Read( (CHAR*)(&m_MonsterID), sizeof(ObjID_t));
	iStream.Read( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
	iStream.Read( (CHAR*)(&m_OBJType), sizeof(INT));
	
	return TRUE ;
	__LEAVE_FUNCTION
	return FALSE ;
}
开发者ID:brock7,项目名称:TianLong,代码行数:14,代码来源:GCNewItemBox.cpp

示例5: Read

BOOL LCRetCharLogin::Read( SocketInputStream& iStream ) 
{
	__ENTER_FUNCTION
	
	iStream.Read((CHAR*)&Result,sizeof(ASKCHARLOGIN_RESULT));
	iStream.Read((CHAR*)&ServerPort,sizeof(UINT));
	iStream.Read((CHAR*)&ServerIP,sizeof(CHAR)*IP_SIZE);
	iStream.Read((CHAR*)&Key,sizeof(UINT));
	return TRUE ;

	__LEAVE_FUNCTION

	return FALSE ;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:14,代码来源:LCRetCharLogin.cpp

示例6: Read

BOOL CGMissionSubmit::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_idNPC), sizeof(m_idNPC) ) ;
	iStream.Read( (CHAR*)(&m_idScript), sizeof(m_idScript) ) ;
	iStream.Read( (CHAR*)(&m_idSelectRadio), sizeof(m_idSelectRadio) ) ;

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:14,代码来源:CGMissionSubmit.cpp

示例7: Read

BOOL WGCallOfHuman::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

    iStream.Read( (CHAR*)(&m_nTargetPlayerID), sizeof(m_nTargetPlayerID) );
    iStream.Read( (CHAR*)(&m_infoCallOf), sizeof(m_infoCallOf) );
    iStream.Read( (CHAR*)(&m_GUID), sizeof(m_GUID) );

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
开发者ID:gangzi4494,项目名称:web-pap,代码行数:14,代码来源:WGCallOfHuman.cpp

示例8: Read

BOOL CGCharPositionWarp::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
	iStream.Read( (CHAR*)(&m_posServer), sizeof(m_posServer));
	iStream.Read( (CHAR*)(&m_posClient), sizeof(m_posClient));

	return TRUE;

__LEAVE_FUNCTION

	return FALSE;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:14,代码来源:CGCharPositionWarp.cpp

示例9:

BOOL	GCAbilitySucc::Read(SocketInputStream& iStream )	
{
__ENTER_FUNCTION

	iStream.Read((CHAR*)&m_Ability,sizeof(AbilityID_t));
	iStream.Read((CHAR*)&m_Prescription,sizeof(PrescriptionID_t));
	iStream.Read((CHAR*)&m_Obj,sizeof(UINT));

	return TRUE;

__LEAVE_FUNCTION

	return	FALSE;
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:14,代码来源:GCAbilitySucc.cpp

示例10: Read

BOOL GCNewPortal::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_Type), sizeof(BYTE));

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:14,代码来源:GCNewPortal.cpp

示例11: Read

BOOL CGAskLeanAbility::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION
    iStream.Read( (CHAR*)(&m_nAbilityID), sizeof(AbilityID_t));
    iStream.Read( (CHAR*)(&m_nNeedMoney), sizeof(INT));
    iStream.Read( (CHAR*)(&m_nNeedExp),   sizeof(INT));
    iStream.Read( (CHAR*)(&m_nNeedSkillExp),   sizeof(INT));

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
开发者ID:gangzi4494,项目名称:web-pap,代码行数:14,代码来源:CGAskLeanAbility.cpp

示例12: Read

BOOL GWTeamMemberEnterScene::Read(SocketInputStream& iStream )
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)&m_PlayerID, sizeof(PlayerID_t) );
	iStream.Read( (CHAR*)&m_GUID, sizeof(GUID_t) );
	iStream.Read( (CHAR*)&m_SceneID, sizeof(SceneID_t) );

	return TRUE;

__LEAVE_FUNCTION

	return FALSE;
}
开发者ID:brock7,项目名称:TianLong,代码行数:14,代码来源:GWTeamMemberEnterScene.cpp

示例13: Read

BOOL GCCharModifyAction::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
	iStream.Read( (CHAR*)(&m_nLogicCount), sizeof(m_nLogicCount));
	iStream.Read( (CHAR*)(&m_nModifyTime), sizeof(m_nModifyTime));

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
开发者ID:rvpoochen,项目名称:wxsj2,代码行数:14,代码来源:GCCharModifyAction.cpp

示例14: Read

BOOL GCPlayerShopStallStatus::Read( SocketInputStream& iStream ) 
{
	__ENTER_FUNCTION

	iStream.Read( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	iStream.Read( (CHAR*)(&m_nStallIndex), sizeof(BYTE));
	iStream.Read( (CHAR*)(&m_bStatus), sizeof(BYTE));
	iStream.Read( (CHAR*)(&m_FinalStallNum), sizeof(BYTE));
	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:14,代码来源:GCPlayerShopStallStatus.cpp

示例15: Read

BOOL GWHorseChangeState::Read( SocketInputStream& iStream ) 
{
__ENTER_FUNCTION

	iStream.Read( (CHAR*)&m_GUID, sizeof(m_GUID) );
	iStream.Read( (CHAR*)&m_iStateChangeType, sizeof(m_iStateChangeType) );
	iStream.Read( (CHAR*)&m_PlayerID, sizeof(m_PlayerID) );

	return TRUE;

__LEAVE_FUNCTION
	
	return FALSE;
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:14,代码来源:GWHorseChangeState.cpp


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