OSID Logo
OSID Specifications
transport package
Version 3.0.0
Release Candidate Preview
Interfaceosid.transport.InboundStreamSession
Implementsosid.OsidSession
Description

The inbound stream session is used as a listener. A callback is registered using a StreamReceiver. The listener is closed when this session is closed.

MethodgetEndpointId
Description

Gets the Endpoint Id associated with this session.

Returnosid.id.Idthe Endpoint Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetEndpoint
Description

Gets the Endpoint associated with this session.

Returnosid.transport.Endpointthe Endpoint associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterCallback
Description

Registers a callback to receive incoming data.

Parametersosid.transport.StreamReceiverreceivera stream receievr
ErrorsNULL_ARGUMENT receiver is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.