本文整理汇总了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 ;
}
示例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;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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 ;
}
示例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
}