16,471
社区成员
发帖
与我相关
我的任务
分享
class CSocketServer :
protected CThread,
private CUsesWinsock,
protected CIOBuffer::Allocator
{
public:
class Socket;
friend class Socket;
class FilteringHelper;
friend class FilteringHelper;
virtual ~CSocketServer();
using CThread::Start; // 这是什么目的?
void StartAcceptingConnections();
void StopAcceptingConnections();
void InitiateShutdown();
void WaitForShutdownToComplete();
protected :
class A
{
protected:
void Fun1() { printf("Fun1()"); }
};
class B : public A
{
public:
using A::Fun1;
};
B b;
b.Fun1(); // 可以访问 不过如果Fun1() 是privated就不行了
public:
class Socket; // 拿这个又是什么意思