Download this source code in text format (Dnode.h)
/***********************************************************
* WindowMud - Window Mud Server *
* File: Dnode.h *
* Usage: Defines the Dnode class *
* *
* No warranty is given or implied. *
* There is no license associated with this code. *
* There are no restrictions on the use of this code. *
* This code may be used in any way the reader wishes. *
* No credit or credits are given and none are required. *
* The reader may take this code and claim they wrote it. *
************************************************************/
#ifndef DNODE_H
#define DNODE_H
/***********************************************************
* Includes *
************************************************************/
#include "Config.h"
/***********************************************************
* Define Dnode class *
************************************************************/
class Dnode
{
// Friend classes
friend class Communication;
friend class Descriptor;
// Public functions static
public:
static int GetCount();
// Private functions
private:
Dnode(int SocketHandle, CString IpAddress);
~Dnode();
// Private variables static
private:
static int Count;
// Private variables
private:
Dnode *pDnodeNext;
Dnode *pDnodePrev;
int DnodeFd;
CString PlayerInp;
CString PlayerIpAddress;
CString PlayerOut;
bool PlayerStateBye;
bool PlayerStateSendBanner;
};
#endif