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


C++ SocketOutputStream类代码示例

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


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

示例1: Write

BOOL CGBankAddItem::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_FromType), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_indexFrom), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_indexTo), sizeof(BYTE));

	return TRUE ;

	__LEAVE_FUNCTION

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

示例2: Write

BOOL GWTeamMemberEnterScene::Write(SocketOutputStream& oStream ) const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_PlayerID), sizeof(PlayerID_t) );
	oStream.Write( (CHAR*)&m_GUID, sizeof(GUID_t) );
	oStream.Write( (CHAR*)&m_SceneID, sizeof(SceneID_t) );

	return TRUE;

__LEAVE_FUNCTION

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

示例3: Write

BOOL GCItemInfo::Write( SocketOutputStream& oStream ) const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_BagIndex), sizeof(WORD));
    oStream.Write((CHAR*)(&m_nsNull), sizeof(BOOL));

    m_ITEM.Write(oStream);

    return TRUE;

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

示例4: Write

BOOL GCCharModifyAction::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
	oStream.Write( (CHAR*)(&m_nLogicCount), sizeof(m_nLogicCount));
	oStream.Write( (CHAR*)(&m_nModifyTime), sizeof(m_nModifyTime));

	return TRUE ;

__LEAVE_FUNCTION

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

示例5: Write

BOOL GCPlayerShopStallStatus::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

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

	__LEAVE_FUNCTION

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

示例6: Write

BOOL CGPlayerShopPartner::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	oStream.Write( (CHAR*)(&m_Opt), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_PartnerID), sizeof(GUID_t));

	return TRUE ;

	__LEAVE_FUNCTION

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

示例7: Write

BOOL GCChannelResult::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

		oStream.Write( (CHAR*)(&m_Return), sizeof(BYTE) ) ;
		oStream.Write( (CHAR*)&m_GUID, sizeof(GUID_t) );
		oStream.Write( (CHAR*)&m_ChannelID, sizeof(ChannelID_t) );
	
	return TRUE ;

	__LEAVE_FUNCTION

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

示例8: Write

BOOL GCOtherSkill::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t) ) ;
	oStream.Write( (CHAR*)(&m_byListNum), sizeof(BYTE) ) ;
	oStream.Write( (CHAR*)(m_listDam), sizeof(_DAMAGE_INFO)*(m_byListNum>MAX_DAM_LIST_NUM ? MAX_DAM_LIST_NUM : m_byListNum ) ) ;
	oStream.Write( (CHAR*)(&m_SkillID), sizeof(SkillID_t) ) ;

	return TRUE ;

__LEAVE_FUNCTION

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

示例9: Write

BOOL GCNewSpecial::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(m_posWorld));
    oStream.Write( (CHAR*)(&m_Dir), sizeof(m_Dir));
    oStream.Write( (CHAR*)(&m_nDataID), sizeof(m_nDataID));

    return TRUE ;

    __LEAVE_FUNCTION

    return FALSE ;
}
开发者ID:uvbs,项目名称:wx2Server,代码行数:15,代码来源:GCNewSpecial.cpp

示例10: Write

BOOL GCStallRemoveItem::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
    oStream.Write( (CHAR*)(&m_PetGuid), sizeof(PET_GUID_t));
    oStream.Write( (CHAR*)(&m_Serial), sizeof(UINT));
    oStream.Write( (CHAR*)(&m_ToType), sizeof(BYTE));

    return TRUE ;

    __LEAVE_FUNCTION

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

示例11: Write

BOOL CGStallItemPrice::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
	oStream.Write( (CHAR*)(&m_PetGuid), sizeof(PET_GUID_t));
	oStream.Write( (CHAR*)(&m_nPrice), sizeof(UINT));
	oStream.Write( (CHAR*)(&m_nSerial), sizeof(UINT));

	return TRUE ;

	__LEAVE_FUNCTION

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

示例12: Write

BOOL GCNewItem::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_uAmount), sizeof(UINT));
    oStream.Write( (CHAR*)(&m_idOwner), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));

    return TRUE ;

__LEAVE_FUNCTION

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

示例13: Write

BOOL WLBillingKeep::Write( SocketOutputStream& oStream )	const
{
	__ENTER_FUNCTION
		
		oStream.Write((CHAR*)&mAccount,sizeof(CHAR)*(MAX_ACCOUNT+1));
		oStream.Write((CHAR*)&mCharLevel,sizeof(SHORT));
		oStream.Write((CHAR*)&mStartTime,sizeof(UINT));
		oStream.Write((CHAR*)&mEndTime,sizeof(UINT));

		return TRUE ;

	__LEAVE_FUNCTION

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

示例14: Write

BOOL GCNewPet::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
    oStream.Write( (CHAR*)(&m_fDir), sizeof(FLOAT));
    oStream.Write( (CHAR*)(&m_fMoveSpeed), sizeof(m_fMoveSpeed));

    return TRUE ;

__LEAVE_FUNCTION

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

示例15: throw

void StoreItemInfo::write(SocketOutputStream& oStream) const throw(ProtocolException, Error)
{
	__BEGIN_TRY

	oStream.write(m_ItemExist);
//	cout << __PRETTY_FUNCTION__ << " exist : " << (int)m_ItemExist << endl;

	if (m_ItemExist != 0 )
	{
		PCItemInfo::write(oStream);
		oStream.write(m_Price);
	}

	__END_CATCH
}
开发者ID:hillwah,项目名称:darkeden,代码行数:15,代码来源:StoreInfo.cpp


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