tibrvTransport_WaitForVcConnection()
Function
Declaration
tibrv_statustibrvTransport_WaitForVcConnection
(
tibrvTransport vcTransport,
tibrv_f64 timeout);
Purpose
Test the connection status of a virtual circuit.
Remarks
This function produces the same information as the virtual circuit advisory messages—but it produces it synchronously (while advisories are asynchronous). Programs can use this function not only to test the connection, but also to block until the connection is ready to use.
For example, a program can create a terminal object, then call this function to wait until the connection completes.
Parameter |
Description |
|||||||||
|
Wait until this virtual circuit transport object has established a connection with its opposite terminal. You may supply either an accept terminal or a connect terminal as an argument. |
|||||||||
|
This parameter determines the behavior of the call:
|
Status |
Description |
The connection is complete (ready to use). |
|
The connection is not yet complete, but the non-negative time limit for waiting has expired. |
|
The connection was formerly complete, but is now irreparably broken. |
See Also
tibrvTransport_CreateAcceptVc()
tibrvTransport_CreateConnectVc()
Testing the New Connection in
VC.CONNECTED
in
VC.DISCONNECTED
in