Share via


TranSend (Compact 2013)

3/26/2014

This function sends data on the transport.

Syntax

BOOL TranSend(
  TRANSPORTID  id,
  LPCVOID pData,
  USHORT cbData,
  DWORD dwTimeout
);

Parameters

  • id
    [in] Valid TRANSPORTID returned from TranCreate.
  • pData
    [in] Pointer to the data to send.
  • cbData
    [in] Size of the data, in bytes, pointed to by pData.
  • dwTimeout
    [in] Specifies the amount of time, in milliseconds, before the operation should abort/fail.

Return Value

If the send is successful, TRUE is returned; otherwise, FALSE is returned.

Remarks

TranSend is called when a client wants to send a data packet on a stream registered using KITLRegisterClient. This function is called whenever the user wants to send a block of data to the device.

Requirements

Header

kitltran.h

Library

Developer Implemented

See Also

Reference

KITL Transport Functions
TranCreate
KITLRegisterClient