| Description | Hierarchy | Fields | Methods | Properties | 
type unaRTSPServer = class(unaSocks)
Basic RTSP server.
![]()  | 
constructor create(); | 
![]()  | 
function open(transport: int = IPPROTO_TCP; const port: string = ''; const bindTo: string = '0.0.0.0'): HRESULT; | 
![]()  | 
procedure close(); | 
![]()  | 
procedure sendResponse(request: unaRTSPServerParser; responseCode: int = c_RTSP_RESPCODE_OK; const headers: string = ''; const body: string = ''; const humanMsg: string = ''); | 
![]()  | 
procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer = nil; size: uint = 0); override; | 
![]()  | 
procedure handleRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser); virtual; | 
![]()  | 
procedure onRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser; var headers, body, msg: string; var respcode: int); virtual; | 
![]()  | 
property active: bool read f_active; | 
![]()  | 
constructor create(); | 
| 
 //  | |
![]()  | 
function open(transport: int = IPPROTO_TCP; const port: string = ''; const bindTo: string = '0.0.0.0'): HRESULT; | 
| 
 Opens a new server. 
 Parameters
 ReturnsS_OK or some error otherwise  | |
![]()  | 
procedure close(); | 
| 
 Closes server thread  | |
![]()  | 
procedure sendResponse(request: unaRTSPServerParser; responseCode: int = c_RTSP_RESPCODE_OK; const headers: string = ''; const body: string = ''; const humanMsg: string = ''); | 
| 
 Sends response back to client  | |
![]()  | 
procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer = nil; size: uint = 0); override; | 
![]()  | 
procedure handleRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser); virtual; | 
![]()  | 
procedure onRequest(reqInt: int; const fromIP: string; request: unaRTSPServerParser; var headers, body, msg: string; var respcode: int); virtual; | 
![]()  | 
property active: bool read f_active; | 
| 
 True when server is active  | |
(c) 2012 Lake of Soft