[Live-devel] inherit from RTSPClientSession
Ross Finlayson
finlayson at live555.com
Mon Nov 15 20:25:02 PST 2010
>i write the code like follow in vc6:
>class MyRTSPServer : public RTSPServer {public:
> MyRTSPServer();
> class MyRTSPClientSession : public RTSPClientSession {
> public:
> MyRTSPClientSession();
>
> // redefined virtual function:
> virtual RTSPClientSession* createNewClientSession(unsigned
>sessionId, int clientSocket, struct sockaddr_in clientAddr);
> };
>};
>but the compile error comes out.and say
>D:\develop\develop\InterfaceRTSPServer\src\DynamicRTSPServer.h(69) :
>error C2504: 'RTSPClientSession' : base class undefined
Then try writing
class MyRTSPClientSession : public RTSPServer::RTSPClientSession {
instead of
class MyRTSPClientSession : public RTSPClientSession {
Some compilers might be picky about this...
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list