UDPPutArray Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
UDPPutArray Function
C
WORD UDPPutArray(
    BYTE * cData, 
    WORD wDataLen
);
Description

This function writes an array of bytes to the currently active UDP socket, while incrementing the buffer length. UDPIsPutReady should be used before calling this function to specify the currently active socket.

Preconditions

UDPIsPutReady() was previously called to specify the current socket.

Parameters
Parameters 
Description 
cData 
The array to write to the socket. 
wDateLen 
Number of bytes from cData to be written. 
Returns

The number of bytes successfully placed in the UDP transmit buffer. If this value is less than wDataLen, then the buffer became full and the input was truncated.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.