_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
BNCSOutputStream Class Reference

Public Member Functions

 BNCSOutputStream (uint8_t id, bool udp=false)
 
 ~BNCSOutputStream ()
 
void serialize32 (uint32_t data)
 
void serialize32NativeByteOrder (uint32_t data)
 
void serialize16 (uint16_t data)
 
void serialize8 (uint8_t data)
 
void serializeC32 (const char *str)
 
void serialize (const char *str)
 
int flush (CTCPSocket *sock)
 
void flush (CUDPSocket *sock, CHost *host)
 

Constructor & Destructor Documentation

◆ BNCSOutputStream()

BNCSOutputStream::BNCSOutputStream ( uint8_t  id,
bool  udp = false 
)
inline

◆ ~BNCSOutputStream()

BNCSOutputStream::~BNCSOutputStream ( )
inline

Member Function Documentation

◆ flush() [1/2]

int BNCSOutputStream::flush ( CTCPSocket sock)
inline

◆ flush() [2/2]

void BNCSOutputStream::flush ( CUDPSocket sock,
CHost host 
)
inline

◆ serialize()

void BNCSOutputStream::serialize ( const char *  str)
inline

◆ serialize16()

void BNCSOutputStream::serialize16 ( uint16_t  data)
inline

◆ serialize32()

void BNCSOutputStream::serialize32 ( uint32_t  data)
inline

◆ serialize32NativeByteOrder()

void BNCSOutputStream::serialize32NativeByteOrder ( uint32_t  data)
inline

◆ serialize8()

void BNCSOutputStream::serialize8 ( uint8_t  data)
inline

◆ serializeC32()

void BNCSOutputStream::serializeC32 ( const char *  str)
inline

The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.