Home Units Hierarchy Routines All identifiers

Class socketStreamer

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type socketStreamer = class(unaSocks)

Description

– socketStreamer –

Hierarchy

Overview

Methods

Public constructor create(asAudioServer: bool);
Public function clientCount(): int;
Public function getStatistic(out receivedBytes, playedBackBytes: int64; out pcmFormat: string): bool;
Public function isActive(): bool;
Public function sendData(data: pointer; len: unsigned): unsigned;
Public function start(const port: string; socketType: unsigned = IPPROTO_TCP; bufferSize: unsigned = 8192; deviceId: unsigned = WAVE_MAPPER): HRESULT; overload;
Public function start(const address, port: string; socketType: unsigned = IPPROTO_TCP; bufferSize: unsigned = 8192): HRESULT; overload;
Public function startIcyServer(const port: string; maxClients: unsigned = 3; dataAlign: unsigned = 8192; bitrate: int = 128; const special: string = ''): HRESULT;
Public function stop(): HRESULT;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Public procedure gotServerData(data: pointer; len: unsigned);
Public procedure sendIcyMetadata(const title, url: aString);
Protected procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer; size: uint); override;

Properties

Public property emulErrorCode: int read getEmulErrorCode;
Public property emulStatusCode: int read getEmulStatusCode;
Public property sentBytes: int64 read f_streamer_sentBytes;
Public property streamerSocketError: int read f_streamer_socketError;

Description

Methods

Public constructor create(asAudioServer: bool);
 
Public function clientCount(): int;
 
Public function getStatistic(out receivedBytes, playedBackBytes: int64; out pcmFormat: string): bool;
 
Public function isActive(): bool;
 
Public function sendData(data: pointer; len: unsigned): unsigned;
 
Public function start(const port: string; socketType: unsigned = IPPROTO_TCP; bufferSize: unsigned = 8192; deviceId: unsigned = WAVE_MAPPER): HRESULT; overload;
 
Public function start(const address, port: string; socketType: unsigned = IPPROTO_TCP; bufferSize: unsigned = 8192): HRESULT; overload;
 
Public function startIcyServer(const port: string; maxClients: unsigned = 3; dataAlign: unsigned = 8192; bitrate: int = 128; const special: string = ''): HRESULT;
 
Public function stop(): HRESULT;
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Public procedure gotServerData(data: pointer; len: unsigned);
 
Public procedure sendIcyMetadata(const title, url: aString);
 
Protected procedure event(event: unaSocketEvent; id, connId: tConID; data: pointer; size: uint); override;
 

Properties

Public property emulErrorCode: int read getEmulErrorCode;
 
Public property emulStatusCode: int read getEmulStatusCode;
 
Public property sentBytes: int64 read f_streamer_sentBytes;
 
Public property streamerSocketError: int read f_streamer_socketError;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-07