Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Event Class Reference

#include <event.h>

List of all members.

Public Methods

 Event (Event_T etype, SOCKET eid, int elen, const char *edata)
 ~Event ()

Public Attributes

Event_T mEventType
 Type of event.

unsigned int mClientId
 The id. Socket number.

int mDataLen
 Optional length of message data.

char * mpData
 Optional messsage data.


Private Methods

 Event (Event &)
Event & operator= (Event &)


Detailed Description

The Event class implements a construct to pass messages between subsystems.

Note:
All attributes are publically accessible. We will store these in the event queues as pointers so we can take advantage of specialization later. No copy constructor or assignment allowed.

Definition at line 34 of file event.h.


Constructor & Destructor Documentation

Event::Event (  Event_T    etype,
SOCKET    eid,
int    elen,
const char *    edata
) 
 

The constructor for an Event.

Parameters:
etype  The type of event.
eid  The client id associated with this event (socket number).
elen  The length of the message data.
edata  The message data. It may or may not be a null terminated character array.

Definition at line 20 of file event.cpp.

References Event_T, mDataLen, and mpData.

Event::~Event (    ) 
 

Destructor for an Event.

Definition at line 35 of file event.cpp.

References mpData.

Event::Event (  Event &    )  [private]
 


Member Function Documentation

Event& Event::operator= (  Event &    )  [private]
 


Member Data Documentation

unsigned int Event::mClientId
 

The id. Socket number.

Definition at line 40 of file event.h.

Referenced by Chat(), and Server::ProcessQueue().

int Event::mDataLen
 

Optional length of message data.

Definition at line 41 of file event.h.

Referenced by Chat(), Event(), and Server::ProcessQueue().

Event_T Event::mEventType
 

Type of event.

Definition at line 39 of file event.h.

Referenced by Chat(), and Server::ProcessQueue().

char* Event::mpData
 

Optional messsage data.

Definition at line 42 of file event.h.

Referenced by Chat(), Event(), Server::ProcessQueue(), and ~Event().


The documentation for this class was generated from the following files:
Generated on Mon Mar 29 23:12:57 2004 for Paradigm by doxygen1.2.17