Скачиваний:
37
Добавлен:
01.05.2014
Размер:
792 б
Скачать
//” ©«: 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
Соседние файлы в папке LAB_4