RTSPSessionInterface : public QTSSDictionary, public Task
RTSPSession : public RTSPSessionInterface
TCPSocket : public Socket : public EventContext
//tcp监听
TCPListenerSocket::ProcessEvent
//make rtspsession/task
theTask = this->GetSessionTask(&theSocket);
theSocket->RequestEvent(EV_RE);
//register epoll
addEpollEvent(&fEventReq, theMask) != 0)
fRef.Set(fUniqueIDStr, this);
//we can get EventContent by fref
fEventThread->fRefTable.Register(&fRef);//通过字符串识别EventContent
theSocket->SetTask(theTask)
//EventContent 包含task,task包含socket
//事件处理线程
Socket::StartThread(); //RunServer.cpp