Home Units Hierarchy Routines All identifiers

Class unaRTSPClient

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaRTSPClient = class(unaThread)

Description

Basic RTSP client.

Hierarchy

Overview

Methods

Public constructor create(const userAgent: string = 'unaRTPSClient/1.1');
Public function sendRequest(req: int; const uri: string = ''; const control: string = ''; const params: string = ''): HRESULT;
Protected function execute(threadID: unsigned): int; override;
Public procedure BeforeDestruction(); override;
Public procedure close(const uri: string = '');
Protected procedure onReqError(const uri, control: string; req: int; errorCode: HRESULT); virtual;
Protected procedure onResponse(const uri, control: string; req: int; response: unaHTTPparser); virtual;

Description

Methods

Public constructor create(const userAgent: string = 'unaRTPSClient/1.1');

Creates RTPS client.

Public function sendRequest(req: int; const uri: string = ''; const control: string = ''; const params: string = ''): HRESULT;

Sends request to server.

Parameters
req
one of c_RTSP_METHOD_XXXX
uri
server address. If uri is '', will use last uri from previous call (passing '' as uri is not MT-safe!)
control
Individual
params
additional headers
Protected function execute(threadID: unsigned): int; override;
 
Public procedure BeforeDestruction(); override;

Cleans up socket.

Public procedure close(const uri: string = '');

Closes an open connections to a server. If URI is '', closes all connections.

Protected procedure onReqError(const uri, control: string; req: int; errorCode: HRESULT); virtual;
 
Protected procedure onResponse(const uri, control: string; req: int; response: unaHTTPparser); virtual;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09