NBS.TCP_WriteBuffer (FB)

 

(CAA_NetBaseServices.library)

Like NBS.TCP_Write this function block serves to write data to the previ­ously established connection given in hConnection. Instead of a pointer to the data, this function block expects a handle of the buffer containing the data to be written. The buffer is passed on and not copied like at NBS.TCP_Write.

Input:

xExecute

BOOL

see: CAA Guidelines

udiTimeOut

UDINT

The time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message

hConnection

CAA.HANDLE

Handle of the connection

hBuffer

CAA.HANDLE

Handle of the buffer

Output:

xDone

BOOL

see: CAA Guidelines

xBusy

BOOL

see: CAA Guidelines

xError

BOOL

see: CAA Guidelines

eError

NBS.ERROR

Error id