Home Units Hierarchy Routines All identifiers

Class unaRTPDestination

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaRTPDestination = class(unaObject)

Description

RTP Destiation. Could be unicast/multicast UDP.

Hierarchy

Overview

Methods

Public constructor create(dstatic: bool; trans: unaRTPTransmitter; addrRTP, addrRTCP: pSockAddrIn; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload;
Public constructor create(dstatic: bool; trans: unaRTPTransmitter; const ipN: TIPv4N); overload;
Public constructor create(dstatic: bool; trans: unaRTPTransmitter; const destHost, destPortRTP, destPortRTCP: string; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload;
Public function sameAddr(isRTP: bool; const addr: sockaddr_in; checkIPOnly: bool = false): bool;
Public function transmit(data: pointer; len: uint; isRTCP: bool = false): int;
Public procedure BeforeDestruction(); override;
Protected procedure close();
Protected procedure open();

Properties

Public property addrRTCP: PSockAddrIn read getAddrRTCP;
Public property addrRTP: PSockAddrIn read getAddrRTP;
Public property closeOnBye: bool read f_closeOnBye;
Public property dstatic: bool read f_dstatic;
Public property enabled: bool read f_enabled write f_enabled;
Public property isOpen: bool read f_isOpen;
Public property recSSRC: uint32 read f_recSSRC;
Public property scope: int read f_scope;
Public property ttl: int read f_ttl write setTTL;

Description

Methods

Public constructor create(dstatic: bool; trans: unaRTPTransmitter; addrRTP, addrRTCP: pSockAddrIn; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload;

Creates new destination with specified addrRTP, etc Will not create own socket (assuming usage of receiver's socket)

Public constructor create(dstatic: bool; trans: unaRTPTransmitter; const ipN: TIPv4N); overload;

Creates new destination which will work only through transmiter's receiver's socket. Will create own socket

Public constructor create(dstatic: bool; trans: unaRTPTransmitter; const destHost, destPortRTP, destPortRTCP: string; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload;

Creates new destination with specified destHost, destPort, etc Will not create own socket (assuming usage of receiver's socket)

Public function sameAddr(isRTP: bool; const addr: sockaddr_in; checkIPOnly: bool = false): bool;

Check if provided address is the same as of destination

Public function transmit(data: pointer; len: uint; isRTCP: bool = false): int;

Transmits data to remote destination.

Return 0 for success, or socket-specific error code otherwise.

Public procedure BeforeDestruction(); override;

Releases sockets.

Protected procedure close();

Closes destination

Protected procedure open();

Opens destination

Properties

Public property addrRTCP: PSockAddrIn read getAddrRTCP;

Remote RTCP addr.

Public property addrRTP: PSockAddrIn read getAddrRTP;

Remote RTP addr.

Public property closeOnBye: bool read f_closeOnBye;

Default if false.

Public property dstatic: bool read f_dstatic;

True for static (persistent), false for dynamic destination. Dynamic destination will be removed upon streamer's close() or when BYE is received. Static destination will be closed on BYE (if closeOnBye is True), but will be re-opened on HELLO. It will also survive streamer's close().

Public property enabled: bool read f_enabled write f_enabled;

Streaming enabled?

Public property isOpen: bool read f_isOpen;

True if destination transport is ready

Public property recSSRC: uint32 read f_recSSRC;

SSRC of receiver (if known)

Public property scope: int read f_scope;

0 - unicast 1 - broadcast 2 - multicast

Public property ttl: int read f_ttl write setTTL;

TTL

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09