25 #ifndef OPAL_OPAL_SDPHTTPEP_H
26 #define OPAL_OPAL_SDPHTTPEP_H
43 class OpalSDPHTTPEndPoint :
public OpalSDPEndPoint
45 PCLASSINFO(OpalSDPHTTPEndPoint, OpalSDPEndPoint);
50 DefaultSecurePort = 5081
64 ~OpalSDPHTTPEndPoint();
75 virtual PString GetDefaultTransport()
const;
79 virtual WORD GetDefaultSignalPort()
const;
83 virtual void NewIncomingConnection(
117 virtual PSafePtr<OpalConnection> MakeConnection(
119 const PString & party,
121 unsigned int options,
131 virtual OpalSDPHTTPConnection * CreateConnection(
139 virtual bool OnReceivedHTTP(
140 PHTTPServer & server,
141 const PHTTPConnectionInfo & conInfo
146 PHTTPSpace m_httpSpace;
155 class OpalSDPHTTPResource :
public PHTTPResource
157 PCLASSINFO(OpalSDPHTTPResource, PHTTPResource)
160 OpalSDPHTTPEndPoint & ep,
164 OpalSDPHTTPEndPoint & ep,
166 const PHTTPAuthority & auth
170 PHTTPServer & server,
171 const PHTTPConnectionInfo & conInfo
174 PHTTPServer & server,
175 const PHTTPConnectionInfo & conInfo
179 OpalSDPHTTPEndPoint & m_endpoint;
187 class OpalSDPHTTPConnection : public OpalSDPConnection
189 PCLASSINFO(OpalSDPHTTPConnection, OpalSDPConnection);
195 OpalSDPHTTPConnection(
197 OpalSDPHTTPEndPoint & endpoint,
198 unsigned options = 0,
204 ~OpalSDPHTTPConnection();
216 virtual PBoolean SetUpConnection();
228 virtual PBoolean SetConnected();
247 virtual void OnReleased();
257 virtual PString GetDestinationAddress();
260 virtual PString GetMediaInterface();
268 virtual bool OnReceivedHTTP(
270 PHTTPServer & server,
271 const PHTTPConnectionInfo & conInfo
276 void InternalSetMediaAddresses(PIndirectChannel & channel);
278 PString m_destination;
279 PString m_mediaInterface;
281 SDPSessionDescription * m_offerSDP;
282 SDPSessionDescription * m_answerSDP;
283 PSyncPoint m_connected;
285 friend class OpalSDPHTTPEndPoint;
288 #endif // OPAL_SDP_HTTP
290 #endif // OPAL_OPAL_SDPHTTPEP_H
Definition: manager.h:150
#define OPAL_PREFIX_SDP
SDP over HTTP (e.g. for WebRTC) supported string for OpalInitialise()
Definition: opal.h:349
This file contains a simplified API to the OPAL system. It provides a pure "C" language interface as ...
Definition: transports.h:411
Definition: connection.h:530
PSafePtr< OpalTransport > OpalTransportPtr
Definition: transports.h:50
Definition: transports.h:151