client.h

来自「网络游戏通用架构, 这是基于boost和libevent写的一个程序」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef CLIENT_H
#define CLIENT_H

#include <string>
#include <iostream>

using namespace std;

#include "remote.h"

class Client : public Remote
{
public:
    Client( string __name, string __password );
    ~Client();
public:
    void disconnected(void);
    string& getName()
    {
        return _name;
    }
    string& getPassword()
    {
        return _password;
    }
protected:
    string _name;
    string _password;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?