DOFConnectionStreamRequestgetConnection Method OpenDOF Object Access Library

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFConnection getConnection()

Return Value

Type: DOFConnection
The connection associated with the StreamRequest. This connection is a DOFConnection created specifically for the StreamRequest that shares the config and state with the connection to which the request applies. Its scope is strictly the StreamRequest, which means that the listener cannot force this connection to be disconnected (the disconnect method will decrement the connection’s reference count, which may cause the connection to be disconnected), but it can cause the connection to be kept connected (this is most useful for when the callbacks are on a streaming connection to keep it open). Since this connection is available through the StreamRequest, it is available to both the StreamRequestListener.streamRequest(Config, StreamRequest) and StreamRequestListener.streamRequestComplete(Config, StreamRequest) for any given StreamRequest.
See Also

Reference