// $Id: CMsgOs.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL CMsgOs

CMsgOs : public CMsg

Messages from the Reversi server (/os) are subclasses of CMsgOs.

CMsgOs member functions allow you to access the list of games, matches, and match requests.

Some subclasses have UpdateOs() functions that update the lists. The default message handlers in OsMsgHandlers.cpp and call UpdateOs() if needed, and call CMsgOs::Handle().

Normal Response

The default message handler calls CMsg::Handle(); edit the Handle() code to change this.

Members

Handler
void Handle()Default handler for /os messages (default calls CMsg::Handle())
Access to persistent data
COsGame* PGame(const string& idg) constReturn a pointer to a game, or NULL if no such game
COsMatch* PMatch(const string& idm) constReturn a pointer to a match, or NULL if no such match
COsRequest* PRequest(const string& idr) constReturn a pointer to a match request, or NULL if no such request
COs& Os() constReturn the COs object that holds the games, matches, and requests.