Home Units Hierarchy Routines All identifiers

Class unavclIPBroadcastPipe

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unavclIPBroadcastPipe = class(unavclInOutPipe)

Description

Implements basic broadcast pipe.

Hierarchy

Overview

Methods

Protected function applyFormat(data: pointer; len: uint; provider: unavclInOutPipe = nil; restoreActiveState: bool = false): bool; override;
Protected function doOpen(): bool; override;
Protected function doRead(data: pointer; len: uint): uint; override;
Protected function getAvailableDataLen(index: integer): uint; override;
Protected function getFormatExchangeData(out data: pointer): uint; override;
Protected function isActive(): bool; override;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Public procedure setBroadcastAddr(const addrH: TIPv4H = TIPv4H(INADDR_BROADCAST));
Protected procedure bindSocket(); virtual;
Protected procedure doClose(); override;
Protected procedure doSetPort(const value: string); virtual;

Properties

Published property bindTo: string read f_bindToIP write f_bindToIP;
Published property port: string read getPort write setPort;
Public property waveFormatTag: unsigned index 0 read f_waveFormatTag write setwaveParam default WAVE_FORMAT_PCM;
Public property waveNumBits: unsigned index 3 read f_waveNumBits write setwaveParam default 16;
Public property waveNumChannels: unsigned index 2 read f_waveNumChannels write setwaveParam default 2;
Public property waveSamplesPerSec: unsigned index 1 read f_waveSamplesPerSec write setwaveParam default 44100;

Description

Methods

Protected function applyFormat(data: pointer; len: uint; provider: unavclInOutPipe = nil; restoreActiveState: bool = false): bool; override;

Applies format on a pipe.

Protected function doOpen(): bool; override;

Opens a pipe.

Protected function doRead(data: pointer; len: uint): uint; override;

Reads data from pipe.

Protected function getAvailableDataLen(index: integer): uint; override;

Returns 0.

Protected function getFormatExchangeData(out data: pointer): uint; override;

Returns format exchange packet.

Protected function isActive(): bool; override;

Returns active state of a pipe.

Public procedure AfterConstruction(); override;

Creates a broadcast pipe.

Public procedure BeforeDestruction(); override;

Destroys broadcast pipe.

Public procedure setBroadcastAddr(const addrH: TIPv4H = TIPv4H(INADDR_BROADCAST));

Sets the specific broadcast address.

Protected procedure bindSocket(); virtual;

Binds socket on a port (client) or broadcast address (server).

Protected procedure doClose(); override;

Closes a broadcast pipe.

Protected procedure doSetPort(const value: string); virtual;

Sets the port for broadcast socket.

Properties

Published property bindTo: string read f_bindToIP write f_bindToIP;

Specifies IP address the socket should bind to. Default '0.0.0.0' means socket should bind to first available interface.

Published property port: string read getPort write setPort;

Specifies port number for broadcast socket.

Public property waveFormatTag: unsigned index 0 read f_waveFormatTag write setwaveParam default WAVE_FORMAT_PCM;

Specifies format tag of pipe audio stream.

Public property waveNumBits: unsigned index 3 read f_waveNumBits write setwaveParam default 16;

Specifies number of bits for pipe audio stream.

Public property waveNumChannels: unsigned index 2 read f_waveNumChannels write setwaveParam default 2;

Specifies number of channels for pipe audio stream.

Public property waveSamplesPerSec: unsigned index 1 read f_waveSamplesPerSec write setwaveParam default 44100;

Specifies samples per second for pipe audio stream.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09