DOFConnectionStreamRequestListenerstreamRequest Method OpenDOF Object Access Library
Informs the listener that a Type.STREAM connection has been requested, based on current DOFInterestLevel.CONNECT -level interest and matching provided bindings.

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

C#
void streamRequest(
	DOFConnectionConfig config,
	DOFConnectionStreamRequest request
)

Parameters

config
Type: org.opendof.core.oalDOFConnectionConfig
The configuration on which the listener was set (including actual credentials), so that a secure Type.STREAM connection could be made from an existing secure Type.DATAGRAM connection’s config). This configuration would typically be modified using the builder to create a new configuration appropriate for a streaming version of this connection. For example, an application might call
newConfig = new DOFConnection.Config.Builder(config)
.setConnectionType(DOFConnection.Type.STREAM)
.setAddress(targetAddress)
.build();
to create a STREAM connection from a DATAGRAM connection’s config.
request
Type: org.opendof.core.oalDOFConnectionStreamRequest
An object representing the request for the Type.STREAM connection. This request has several pieces of useful information that the application may need to establish the correct connection. Specifically, it contains the following:
  1. The target address to which the connection should be made. This is always Type.UNICAST , as opposed to the address in the connection config which may not be appropriate (e.g., Type.MULTICAST , Type.BROADCAST , or DOFGroupAddress .
  2. The connection on which the request is being made. This connection instance is unique to the listener (it is not the same DOFConnection the application has, but it represents the same underlying connection). This also gives access to the current connection state, useful for determining if the request is on a Type.DATAGRAM connection (for which a Type.STREAM connection should be opened) or on a STREAM connection (which needs to be kept open, and possibly monitored, to satisfy the request).
See Also

Reference