_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
BNCSInputStream Class Reference

Public Member Functions

 BNCSInputStream (CTCPSocket *socket)
 
 ~BNCSInputStream ()
 
std::string readString ()
 
std::vector< std::string > readStringlist ()
 
std::vector< std::string > readStringlist (int cnt)
 
uint8_t read8 ()
 
uint16_t read16 ()
 
uint32_t read32 ()
 
uint64_t read64 ()
 
bool readBool8 ()
 
bool readBool32 ()
 
uint64_t readFiletime ()
 
int readAll (char **out)
 
std::string string32 ()
 
uint8_t readMessageId ()
 
void debugDump ()
 
void finishMessage ()
 

Constructor & Destructor Documentation

◆ BNCSInputStream()

BNCSInputStream::BNCSInputStream ( CTCPSocket socket)
inline

◆ ~BNCSInputStream()

BNCSInputStream::~BNCSInputStream ( )
inline

Member Function Documentation

◆ debugDump()

void BNCSInputStream::debugDump ( )
inline

◆ finishMessage()

void BNCSInputStream::finishMessage ( )
inline

◆ read16()

uint16_t BNCSInputStream::read16 ( )
inline

◆ read32()

uint32_t BNCSInputStream::read32 ( )
inline

◆ read64()

uint64_t BNCSInputStream::read64 ( )
inline

◆ read8()

uint8_t BNCSInputStream::read8 ( )
inline

◆ readAll()

int BNCSInputStream::readAll ( char **  out)
inline

For debugging and development: read the entire thing as a char array. Caller must "delete[]" the out-char

◆ readBool32()

bool BNCSInputStream::readBool32 ( )
inline

◆ readBool8()

bool BNCSInputStream::readBool8 ( )
inline

◆ readFiletime()

uint64_t BNCSInputStream::readFiletime ( )
inline

◆ readMessageId()

uint8_t BNCSInputStream::readMessageId ( )
inline

To be called at the start of a message, gets the entire data into memory or returns -1.

◆ readString()

std::string BNCSInputStream::readString ( )
inline

◆ readStringlist() [1/2]

std::vector<std::string> BNCSInputStream::readStringlist ( )
inline

◆ readStringlist() [2/2]

std::vector<std::string> BNCSInputStream::readStringlist ( int  cnt)
inline

◆ string32()

std::string BNCSInputStream::string32 ( )
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.