Classes | |
class | AliasBase |
class | _Alias |
class | Alias |
class | BarrierBase |
class | Barrier |
class | record |
class | chain_iterator |
class | chain |
class | EventBase |
class | _Event |
class | Event |
class | EventSerializable |
class | Exception |
class | EmptyException |
class | Glass |
class | GlassClient |
class | GlassServer |
class | GlassServerPeer |
class | MessengerBase |
class | _Messenger |
class | Messenger |
class | Packet |
class | PluginManagerBase |
class | PluginManager |
class | PluginBase |
class | PluginInterface |
class | Protocol |
class | RemoteBase |
class | _Remote |
class | Remote |
class | SerializableObject |
class | RegisterObject |
class | SharedBase |
class | _Shared |
class | Shared |
class | StreamBase |
class | Stream |
class | TCP |
class | GlassThread |
class | StringPointerCompare |
class | ConstStringPointerCompare |
class | UDP |
Typedefs | |
typedef std::string | string |
typedef int | nodeFD |
typedef unsigned int | nodeId |
Enumerations | |
enum | nodeRelation { None = 0, Server, Client, Peer } |
Functions | |
std::ostream & | operator<< (std::ostream &o, chain &p) |
template<typename T > | |
bool | toString (chain &c, T const &t, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | toString (chain &c, T *const &t, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | fromString (const chain &c, unsigned int offset, T &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | fromString (const chain &c, unsigned int offset, T *const &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | rawPack (chain &c, T const &t, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | rawPack (chain &c, T *const &t, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | rawUnpack (const chain &c, unsigned int offset, T &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL) |
template<typename T > | |
bool | rawUnpack (const chain &c, unsigned int offset, T *const &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL) |
template<> | |
bool | fromString< std::string > (const chain &c, unsigned int offset, std::string &data, unsigned int &used, unsigned int nmemb, void *extra) |
template<> | |
bool | rawPack< std::string > (chain &c, std::string const &t, unsigned int nmemb, void *extra) |
template<> | |
bool | rawUnpack< std::string > (const chain &c, unsigned int offset, std::string &data, unsigned int &used, unsigned int nmemb, void *extra) |
template<> | |
bool | rawPack< char * > (chain &c, char *const &t, unsigned int nmemb, void *extra) |
template<> | |
bool | rawUnpack< char * > (const chain &c, unsigned int offset, char *&data, unsigned int &used, unsigned int nmemb, void *extra) |
std::ostream & | operator<< (std::ostream &o, Packet &p) |
unsigned int | charToNum (unsigned char buf[4]) |
void | numToChar (unsigned int num, unsigned char buf[4]) |
void | numToChar (unsigned int num, char buf[4]) |
void | shortToChar (unsigned short num, unsigned char buf[2]) |
unsigned short | charToShort (unsigned char buf[2]) |
Variables | |
const PluginId | rootBaseId = PluginId("RootBase") |
const nodeFD | nobodyFD = -1 |
const nodeFD | everybodyFD = -2 |
const nodeId | nobodyId = 0 |
const nodeId | everybodyId = 1 |
const nodeId | serversId = 2 |
const nodeId | clientsId = 3 |
const nodeId | peersId = 4 |
const nodeId | firstId = 5 |
const nodeId | maxId = UINT_MAX |
typedef int libglass::nodeFD |
typedef unsigned int libglass::nodeId |
typedef std::string libglass::string |
unsigned int libglass::charToNum | ( | unsigned char | buf[4] | ) | [inline] |
unsigned short libglass::charToShort | ( | unsigned char | buf[2] | ) | [inline] |
bool libglass::fromString | ( | const chain & | c, | |
unsigned int | offset, | |||
T *const & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::fromString | ( | const chain & | c, | |
unsigned int | offset, | |||
T & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
Unserializes
c | The chain containing data to unserialize. | |
offset | The start of the data to unserialize. | |
data | A reference to unserialize to. | |
used | A reference to a integer which will contain the number of used characters by the unserializer. | |
nmemb | Number of elements. Use with arrays. | |
extra | Any extra data to be used by this function. |
True | if successful. | |
False | otherwise. |
Definition at line 110 of file packager.h.
References libglass::chain::toString().
bool libglass::fromString< std::string > | ( | const chain & | c, | |
unsigned int | offset, | |||
std::string & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb, | |||
void * | extra | |||
) | [inline] |
void libglass::numToChar | ( | unsigned int | num, | |
char | buf[4] | |||
) | [inline] |
void libglass::numToChar | ( | unsigned int | num, | |
unsigned char | buf[4] | |||
) | [inline] |
std::ostream& libglass::operator<< | ( | std::ostream & | o, | |
Packet & | p | |||
) |
std::ostream& libglass::operator<< | ( | std::ostream & | o, | |
chain & | p | |||
) |
bool libglass::rawPack | ( | chain & | c, | |
T *const & | t, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::rawPack | ( | chain & | c, | |
T const & | t, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::rawPack< char * > | ( | chain & | c, | |
char *const & | t, | |||
unsigned int | nmemb, | |||
void * | extra | |||
) | [inline] |
bool libglass::rawPack< std::string > | ( | chain & | c, | |
std::string const & | t, | |||
unsigned int | nmemb, | |||
void * | extra | |||
) | [inline] |
bool libglass::rawUnpack | ( | const chain & | c, | |
unsigned int | offset, | |||
T *const & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::rawUnpack | ( | const chain & | c, | |
unsigned int | offset, | |||
T & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::rawUnpack< char * > | ( | const chain & | c, | |
unsigned int | offset, | |||
char *& | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb, | |||
void * | extra | |||
) | [inline] |
bool libglass::rawUnpack< std::string > | ( | const chain & | c, | |
unsigned int | offset, | |||
std::string & | data, | |||
unsigned int & | used, | |||
unsigned int | nmemb, | |||
void * | extra | |||
) | [inline] |
void libglass::shortToChar | ( | unsigned short | num, | |
unsigned char | buf[2] | |||
) | [inline] |
bool libglass::toString | ( | chain & | c, | |
T *const & | t, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
bool libglass::toString | ( | chain & | c, | |
T const & | t, | |||
unsigned int | nmemb = 1 , |
|||
void * | extra = NULL | |||
) | [inline] |
Serializes
t | The data. | |
c | The chain to append to. | |
nmemb | Number of elements. Use with arrays. | |
extra | Any extra data to be used by this function. |
Definition at line 54 of file packager.h.
References libglass::chain::append().
const nodeId libglass::clientsId = 3 |
const nodeFD libglass::everybodyFD = -2 |
const nodeId libglass::everybodyId = 1 |
Id for "everybody" (multicast).
Definition at line 98 of file types.h.
Referenced by libglass::Event< T, T, T >::getEvent().
const nodeId libglass::firstId = 5 |
const nodeId libglass::maxId = UINT_MAX |
const nodeFD libglass::nobodyFD = -1 |
const nodeId libglass::nobodyId = 0 |
Id for "nobody".
Definition at line 93 of file types.h.
Referenced by libglass::Remote< T, T, T >::getData(), and libglass::Remote< T, T, T >::setData().
const nodeId libglass::peersId = 4 |
const PluginId libglass::rootBaseId = PluginId("RootBase") |
const nodeId libglass::serversId = 2 |