UDPPutROMString Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
UDPPutROMString Function
C
ROM BYTE* UDPPutROMString(
    ROM BYTE * strData
);
Description

This function writes a null-terminated string 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 
Pointer to the string to be written to the socket. 
Returns

A pointer to the byte following the last byte written. Note that this is different than the UDPPutArray functions. If this pointer does not dereference to a NULL byte, then the buffer became full and the input data was truncated.

Remarks

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

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