SetTTL Method

Description

Sets the TTL (time-to-live) value of the RTCP stream providing feedback from the client. The value is a number ranging from 1 to 255. The default value is 32.

Syntax
object.SetTTL TTL

ParameterDescription
TTL Specifies the routing lifetime of audio packets. Any integer from 1 through 255 is valid, but the following values are standard on most networks.
Value Description
1 Local network routing only.
32 Corporate intranet routing only. This is the default value.
128 Routing across the Internet.
255 Route forever.

Return Value

This method does not return a value.

Remarks

As packets are sent through routers, the TTL value is decremented by 1. When the value is 0, the packets are dropped. Use the lowest value possible to prevent packets from being routed too long.

Example

The following code example shows how to use the SetTTL method to set the TTL. The audio control object is called rtpaudio. When the method is called, the TTL is set to 1 to indicate that the packets should not be routed beyond the local router.


 call rtpaudio.SetTTL(1)

See Also

Return to the RTP Audio Control Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.