UDPPutROMArray Function

Microchip TCP/IP Stack

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

ROM function variants for PIC18 

This function writes an array of bytes from ROM 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.

Remarks

This function is aliased to UDPPutArray on non-PIC18 platforms.

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