Description | Hierarchy | Fields | Methods | Properties |
type unaRTPDestination = class(unaObject)
RTP Destiation. Could be unicast/multicast UDP.
constructor create(dstatic: bool; trans: unaRTPTransmitter; addrRTP, addrRTCP: pSockAddrIn; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload; |
|
constructor create(dstatic: bool; trans: unaRTPTransmitter; const ipN: TIPv4N); overload; |
|
constructor create(dstatic: bool; trans: unaRTPTransmitter; const destHost, destPortRTP, destPortRTCP: string; doOpen: bool = false; ttl: int = -1; recSSRC: uint32 = 0); overload; |
|
function sameAddr(isRTP: bool; const addr: sockaddr_in; checkIPOnly: bool = false): bool; |
|
function transmit(data: pointer; len: uint; isRTCP: bool = false): int; |
|
procedure BeforeDestruction(); override; |
|
procedure close(); |
|
procedure open(); |
property addrRTCP: PSockAddrIn read getAddrRTCP; |
|
property addrRTP: PSockAddrIn read getAddrRTP; |
|
property closeOnBye: bool read f_closeOnBye; |
|
property dstatic: bool read f_dstatic; |
|
property enabled: bool read f_enabled write f_enabled; |
|
property isOpen: bool read f_isOpen; |
|
property recSSRC: uint32 read f_recSSRC; |
|
property scope: int read f_scope; |
|
property ttl: int read f_ttl write setTTL; |
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) |
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 |
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) |
function sameAddr(isRTP: bool; const addr: sockaddr_in; checkIPOnly: bool = false): bool; |
|
Check if provided address is the same as of destination |
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. |
procedure BeforeDestruction(); override; |
|
Releases sockets. |
procedure close(); |
|
Closes destination |
procedure open(); |
|
Opens destination |
property addrRTCP: PSockAddrIn read getAddrRTCP; |
|
Remote RTCP addr. |
property addrRTP: PSockAddrIn read getAddrRTP; |
|
Remote RTP addr. |
property closeOnBye: bool read f_closeOnBye; |
|
Default if false. |
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(). |
property enabled: bool read f_enabled write f_enabled; |
|
Streaming enabled? |
property isOpen: bool read f_isOpen; |
|
True if destination transport is ready |
property recSSRC: uint32 read f_recSSRC; |
|
SSRC of receiver (if known) |
property scope: int read f_scope; |
|
0 - unicast 1 - broadcast 2 - multicast |
property ttl: int read f_ttl write setTTL; |
|
TTL |
(c) 2012 Lake of Soft