Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа #4 / LAB_4 / Client
.h//” ©«: Client.h
//Љ« бб "Љ«ЁҐв". Џа®в®вЁЇ.
//Ђўв®а: ‘ҐаЈҐҐў Њ.‚. Ја.3352
//„ в : 21.05.06, ђҐ¤ ЄжЁп: 1.0
#include "Message.h"
#include "Server.h"
#ifndef CClientH
#define CClientH
class CServer;
class CClient
{
private:
static int nextID;
const int id;
static int count;
public:
CClient(); //constructor
~CClient(); //destructor
int regOnSrv(CServer*s);//regiter on server
int readMsg(CMsg*m); //read message
int sendMsg(int com,CServer*s,int toID); //send msg to client #toID
int sendMsgAll(int com,CServer*s); //send msg to all client througth server
void show()const; //info
void showCInfo()const;
int getID()const; //getters
};
int CClient::nextID = 0;
int CClient::count = 0;
#endif