NBS.UDP_SendBuffer (FB)

Like NBS.UDP_Send this function block of the CAA_NetBaseServices.library serves to send data over the connection given in hPeer. 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.UDP_Send.

Input:

xExecute

BOOL

see: “CAA 指南”

udiTimeOut

UINT

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

hPeer

CAA.HANDLE

Handle of Peer

ipAddr

NBS.IP_ADDR

The ip address the data should be sent across

uiPort

UINT

The port the data should be sent across

hBuffer

CAA.HANDLE

Handle of the buffer

Output:

xDone

BOOL

see: “CAA 指南”

xBusy

BOOL

see: “CAA 指南”

xError

BOOL

see: “CAA 指南”

eError

NBS.ERROR

Error id