pjsip_tpselector class final

This structure describes the transport/listener preference to be used when sending outgoing requests.

Normally transport will be selected automatically according to rules about sending requests. But some applications (such as proxies or B2BUAs) may want to explicitly use specific transport to send requests, for example when they want to make sure that outgoing request should go from a specific network interface.

The pjsip_tpselector structure is used for that purpose, i.e. to allow application specificly request that a particular transport/listener should be used to send request. This structure is used when calling pjsip_tsx_set_transport() and pjsip_dlg_set_transport().

If application disables connection reuse and wants to force creating a new transport, it needs to consider the following couple of things:

  • If it still wants to reuse an existing transport (if any), it needs to keep a reference to that transport and specifically set the transport to be used for sending requests.
  • Delete those existing transports manually when no longer needed.
Inheritance
Implemented types
Available extensions

Constructors

pjsip_tpselector()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
disable_connection_reuse int
Whether to disable reuse of an existing connection. This setting will be ignored if (type == PJSIP_TPSELECTOR_TRANSPORT) and transport in the union below is set.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
The type of data in the union
getter/setter pair
u UnnamedUnion3
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited