/*********************************************************** * WindowMud - Window Mud Server * * File: Communication.h * * Usage: Defines the Descriptor 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 COMMUNICATION_H #define COMMUNICATION_H /*********************************************************** * Includes * ************************************************************/ #include "Config.h" // Server #include "Dnode.h" /*********************************************************** * Define Communication class * ************************************************************/ class Communication { // Public functions static public: Communication(); ~Communication(); void static SendToAll(CString PlayerMsg, CString AllMsg); void static SockCheckForNewConnections(); void static SockClosePort(int Port); void static SockOpenPort(int Port); void static SockRecv(); // Private functions static private: void static CommandArrayLoad(); CString static CommandCheck(CString MudCmdChk); void static CommandParse(); void static DoChat(); void static DoLogon(); void static LogonGreeting(); void static LogonWaitMaleFemale(); void static LogonWaitName(); void static LogonWaitNameConfirmation(); void static LogonWaitNewCharacter(); void static LogonWaitPassword(); void static RepositionDnodeCursor(); void static SockNewConnection(); void static SockSend(const char *arg); }; #endif