Home Units Hierarchy Routines All identifiers

Class unaRTSPServer

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaRTSPServer = class(unaSocks)

Description

Basic RTSP server.

Hierarchy

Overview

Methods

Public constructor create();
Public function open(transport: int = IPPROTO_TCP; const port: string = ''; const bindTo: string = '0.0.0.0'): HRESULT;
Public procedure close();
Public procedure sendResponse(request: unaRTSPServerParser; responseCode: int = c_RTSP_RESPCODE_OK; const headers: string = ''; const body: string = ''; const humanMsg: string = '');
Protected procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer = nil; size: uint = 0); override;
Protected procedure handleRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser); virtual;
Protected procedure onRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser; var headers, body, msg: string; var respcode: int); virtual;

Properties

Public property active: bool read f_active;

Description

Methods

Public constructor create();

//

Public function open(transport: int = IPPROTO_TCP; const port: string = ''; const bindTo: string = '0.0.0.0'): HRESULT;

Opens a new server.

Parameters
transport
UDP or TCP, default is TCP
port
default is c_RTSP_PORT_Default (554)
bindTo
bind to one of local IPs, default is 0.0.0.0
Returns

S_OK or some error otherwise

Public procedure close();

Closes server thread

Public procedure sendResponse(request: unaRTSPServerParser; responseCode: int = c_RTSP_RESPCODE_OK; const headers: string = ''; const body: string = ''; const humanMsg: string = '');

Sends response back to client

Protected procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer = nil; size: uint = 0); override;
 
Protected procedure handleRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser); virtual;
 
Protected procedure onRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser; var headers, body, msg: string; var respcode: int); virtual;
 

Properties

Public property active: bool read f_active;

True when server is active

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09