Simulacrum  1.2
Public Member Functions | List of all members
Simulacrum::SNetMessage Class Reference

#include <snet.h>

Collaboration diagram for Simulacrum::SNetMessage:
Collaboration graph

Public Member Functions

 SNetMessage ()
 
virtual ~SNetMessage ()
 
SNetIDWidth_t getSessionID ()
 
SNetIDWidth_t getItemID ()
 
SNetIDWidth_t getCommand ()
 
SNetIDWidth_t getDataType ()
 
SNetDataWidth_t getDataLength ()
 
char * getData ()
 
void setSessionID (SNetIDWidth_t)
 
void setItemID (SNetIDWidth_t)
 
void setCommand (SNetIDWidth_t)
 
void setDataType (SNetIDWidth_t)
 
void setData (SNetDataWidth_t size, char *data, bool copy=true)
 
std::string toString ()
 
void copy (SNetMessage &, bool deep=true)
 
void write (ssocket_t &target)
 
void read (ssocket_t &source)
 

Constructor & Destructor Documentation

◆ SNetMessage()

SNetMessage::SNetMessage ( )

◆ ~SNetMessage()

SNetMessage::~SNetMessage ( )
virtual

Member Function Documentation

◆ copy()

void SNetMessage::copy ( SNetMessage copyme,
bool  deep = true 
)

◆ getCommand()

SNetIDWidth_t SNetMessage::getCommand ( )

◆ getData()

char * SNetMessage::getData ( )

◆ getDataLength()

SNetDataWidth_t SNetMessage::getDataLength ( )

◆ getDataType()

SNetIDWidth_t SNetMessage::getDataType ( )

◆ getItemID()

SNetIDWidth_t SNetMessage::getItemID ( )

◆ getSessionID()

SNetIDWidth_t SNetMessage::getSessionID ( )

◆ read()

void SNetMessage::read ( ssocket_t &  source)

◆ setCommand()

void SNetMessage::setCommand ( SNetIDWidth_t  newcom)

◆ setData()

void SNetMessage::setData ( SNetDataWidth_t  size,
char *  data,
bool  copy = true 
)

◆ setDataType()

void SNetMessage::setDataType ( SNetIDWidth_t  newtype)

◆ setItemID()

void SNetMessage::setItemID ( SNetIDWidth_t  newid)

◆ setSessionID()

void SNetMessage::setSessionID ( SNetIDWidth_t  newsession)

◆ toString()

std::string SNetMessage::toString ( )

◆ write()

void SNetMessage::write ( ssocket_t &  target)

The documentation for this class was generated from the following files:
Simulacrum Project