static qBool JoinSession( CallContext * pCallContext, const StationURL & refStationURL );
Name | Description | |
---|---|---|
in | pCallContext | Specifies the call context for asynchronous execution. |
in | refStationURL | Specifies a reference to the StationURL objects of stations in the session to be joined. |
Value | Description |
---|---|
true |
Returned when the call starts correctly. (Check the state of pCallContext to determine whether it actually succeeded.) |
false |
The Join process failed. The NetZ instance stores the local session object. You must create the NetZ instance again to rejoin the session.Also, when using NAT traversal with Internet communication, you must perform the NAT transversal again using StopNATSession and StartNATSession .If a UDS master calls this function, an assertion error is generated or false is returned. |
Joins a session.
This function can be used only with local communications. If used with Internet communications, it stops as a result of an assert or fails.
An appropriate timeout for CallContext
can be calculated by multiplying 2 * the value set by the RootTransport::SetNATTraversalTimeout
function + a little extra (around 5 seconds).
If a UDS master calls this function, an assertion error is generated or false
is returned.
false
is returned.CallContext
timeouts.
CONFIDENTIAL