types.h File Reference

#include <string>
#include <limits.h>
#include "msvc.h"

Go to the source code of this file.

Classes

class  libglass::StringPointerCompare
class  libglass::ConstStringPointerCompare

Namespaces

namespace  libglass

Defines

#define PluginId   std::string
#define GLASS_ERROR_FD   (-1)
#define GLASS_SOCKET_ERROR   (-1)

Typedefs

typedef std::string libglass::string
typedef int libglass::nodeFD
typedef unsigned int libglass::nodeId

Enumerations

enum  libglass::nodeRelation { libglass::None = 0, libglass::Server, libglass::Client, libglass::Peer }

Functions

unsigned int libglass::charToNum (unsigned char buf[4])
void libglass::numToChar (unsigned int num, unsigned char buf[4])
void libglass::numToChar (unsigned int num, char buf[4])
void libglass::shortToChar (unsigned short num, unsigned char buf[2])
unsigned short libglass::charToShort (unsigned char buf[2])

Variables

const nodeFD libglass::nobodyFD = -1
const nodeFD libglass::everybodyFD = -2
const nodeId libglass::nobodyId = 0
const nodeId libglass::everybodyId = 1
const nodeId libglass::serversId = 2
const nodeId libglass::clientsId = 3
const nodeId libglass::peersId = 4
const nodeId libglass::firstId = 5
const nodeId libglass::maxId = UINT_MAX


Define Documentation

#define GLASS_ERROR_FD   (-1)

Definition at line 74 of file types.h.

#define GLASS_SOCKET_ERROR   (-1)

Definition at line 75 of file types.h.

#define PluginId   std::string

PluginId type.

PluginIds are unique ids that identify each plugin. They are used, among other things to address packets.

Definition at line 49 of file types.h.


Generated on Fri May 28 13:19:01 2010 for libGlass by  doxygen 1.5.8