TwclCustomObexServer.DoGetRequest(string,string,TwclObexServerOperationResult,TStream) Method

The method called when the GET request received from a OBEX OPP Client.

Namespace: wclObex
protected
 procedure DoGetRequest(const Name: string; const Mime: string;
 out Result: TwclObexServerOperationResult; out Stream: TStream); virtual;

Parameters

Name
Type: string

The requested OBEX object's name.

Mime
Type: string

The requested OBEX object's MIME type.

Result
Type: TwclObexServerOperationResult

An application must set this parameter to the operation result code. If an application can send the requested object the Result must be set to orSuccess.

Stream
Type: TStream

The requested OBEX object's data stream. An application must provide the object's stream only in case if the Result set to orSuccess. In any other case the Stream must be set to nil. The stream object passed to the event must be valid during all Get operation and can be released when the OnGetCompleted event received.