Download this source code in text format (Communication.h)
/***********************************************************
* WindowMud - Window Mud Server *
* File: Communication.h *
* Usage: Defines the Communication 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"
/***********************************************************
* Define Communication class *
************************************************************/
class Communication
{
// Public functions static
public:
Communication();
~Communication();
void static SockCheckForNewConnections();
void static SockClosePort(int Port);
void static SockOpenPort(int Port);
void static SockRecv();
// Private functions static
private:
void static SockNewConnection();
void static SockSend(const char *arg);
};
#endif