TwclCustomServerClientDataProcessor.WriteData(Pointer,Cardinal,Cardinal) Method

Writes data to the Connection.

Namespace: wclConnections
protected
 function WriteData(const Data: Pointer; const Size: Cardinal;
 out Written: Cardinal): Integer; override;

Parameters

Data
Type: Pointer

The pointer to the data buffer that should be sent to the connected device.

Size
Type: Cardinal

The data buffer size.

Written
Type: Cardinal

The amount of bytes actually written to the device.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Overrides

TwclCustomDataProcessor.WriteData(Pointer,Cardinal,Cardinal)