|
jrtplib
3.7.1
|
Describes the parameters for to be used by an RTPSession instance. More...
#include <rtpsessionparams.h>
Public Member Functions | |
| int | SetUsePollThread (bool usethread) |
If usethread is true, the session will use a poll thread to automatically process incoming data and to send RTCP packets when necessary. | |
| bool | IsUsingPollThread () const |
Returns whether the session should use a poll thread or not (default is true). | |
| void | SetMaximumPacketSize (size_t max) |
| Sets the maximum allowed packet size for the session. | |
| size_t | GetMaximumPacketSize () const |
| Returns the maximum allowed packet size (default is 1400 bytes). | |
| void | SetAcceptOwnPackets (bool accept) |
If the argument is true, the session should accept its own packets and store them accordingly in the source table. | |
| bool | AcceptOwnPackets () const |
Returns true if the session should accept its own packets (default is false). | |
| void | SetReceiveMode (RTPTransmitter::ReceiveMode recvmode) |
| Sets the receive mode to be used by the session. | |
| RTPTransmitter::ReceiveMode | GetReceiveMode () const |
| Sets the receive mode to be used by the session (default is: accept all packets). | |
| void | SetOwnTimestampUnit (double tsunit) |
| Sets the timestamp unit for our own data. | |
| double | GetOwnTimestampUnit () const |
| Returns the currently set timestamp unit. | |
| void | SetResolveLocalHostname (bool v) |
| Sets a flag indicating if a DNS lookup should be done to determine our hostname (to construct a CNAME item). | |
| bool | GetResolveLocalHostname () const |
Returns whether the local hostname should be determined from the transmitter's list of local IP addresses or not (default is false). | |
| void | SetProbationType (RTPSources::ProbationType probtype) |
| If probation support is enabled, this function sets the probation type to be used. | |
| RTPSources::ProbationType | GetProbationType () const |
| Returns the probation type which will be used (default is RTPSources::ProbationStore). | |
| void | SetSessionBandwidth (double sessbw) |
| Sets the session bandwidth in bytes per second. | |
| double | GetSessionBandwidth () const |
| Returns the session bandwidth in bytes per second (default is 10000 bytes per second). | |
| void | SetControlTrafficFraction (double frac) |
| Sets the fraction of the session bandwidth to be used for control traffic. | |
| double | GetControlTrafficFraction () const |
| Returns the fraction of the session bandwidth that will be used for control traffic (default is 5%). | |
| void | SetSenderControlBandwidthFraction (double frac) |
| Sets the minimum fraction of the control traffic that will be used by senders. | |
| double | GetSenderControlBandwidthFraction () const |
| Returns the minimum fraction of the control traffic that will be used by senders (default is 25%). | |
| void | SetMinimumRTCPTransmissionInterval (const RTPTime &t) |
| Set the minimal time interval between sending RTCP packets. | |
| RTPTime | GetMinimumRTCPTransmissionInterval () const |
| Returns the minimal time interval between sending RTCP packets (default is 5 seconds). | |
| void | SetUseHalfRTCPIntervalAtStartup (bool usehalf) |
If usehalf is set to true, the session will only wait half of the calculated RTCP interval before sending its first RTCP packet. | |
| bool | GetUseHalfRTCPIntervalAtStartup () const |
Returns whether the session will only wait half of the calculated RTCP interval before sending its first RTCP packet or not (default is true). | |
| void | SetRequestImmediateBYE (bool v) |
If v is true, the session will send a BYE packet immediately if this is allowed. | |
| bool | GetRequestImmediateBYE () const |
Returns whether the session should send a BYE packet immediately (if allowed) or not (default is true). | |
| void | SetSenderReportForBYE (bool v) |
| When sending a BYE packet, this indicates whether it will be part of an RTCP compound packet that begins with a sender report (if allowed) or a receiver report. | |
| bool | GetSenderReportForBYE () const |
Returns true if a BYE packet will be sent in an RTCP compound packet which starts with a sender report; if a receiver report will be used, the function returns false (default is true). | |
| void | SetSenderTimeoutMultiplier (double m) |
| Sets the multiplier to be used when timing out senders. | |
| double | GetSenderTimeoutMultiplier () const |
| Returns the multiplier to be used when timing out senders (default is 2). | |
| void | SetSourceTimeoutMultiplier (double m) |
| Sets the multiplier to be used when timing out members. | |
| double | GetSourceTimeoutMultiplier () const |
| Returns the multiplier to be used when timing out members (default is 5). | |
| void | SetBYETimeoutMultiplier (double m) |
| Sets the multiplier to be used when timing out a member after it has sent a BYE packet. | |
| double | GetBYETimeoutMultiplier () const |
| Returns the multiplier to be used when timing out a member after it has sent a BYE packet (default is 1). | |
| void | SetCollisionTimeoutMultiplier (double m) |
| Sets the multiplier to be used when timing out entries in the collision table. | |
| double | GetCollisionTimeoutMultiplier () const |
| Returns the multiplier to be used when timing out entries in the collision table (default is 10). | |
| void | SetNoteTimeoutMultiplier (double m) |
| Sets the multiplier to be used when timing out SDES NOTE information. | |
| double | GetNoteTimeoutMultiplier () const |
| Returns the multiplier to be used when timing out SDES NOTE information (default is 25). | |
Describes the parameters for to be used by an RTPSession instance. Note that the own timestamp unit must be set to a valid number, otherwise the session can't be created.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the timestamp unit for our own data. The timestamp unit is defined as a time interval in seconds divided by the corresponding timestamp interval. For example, for 8000 Hz audio, the timestamp unit would typically be 1/8000. Since this value is initially set to an illegal value, the user must set this to an allowed value to be able to create a session.
|
inline |
|
inline |
|
inline |
|
inline |
If v is set to true, the session will ask the transmitter to find a host name based upon the IP addresses in its list of local IP addresses. If set to false, a call to gethostname or something similar will be used to find the local hostname. Note that the first method might take some time.
|
inline |
|
inline |
|
inline |
|
inline |
1.8.1.1