XPS Unified Programmer’s Manual
GatheringDataMultipleLinesGet(1, 4, myString)
= >1 = the start line is #2
= >4 = the number of lines to read is 4
= >myString = buffer to get the part of buffer (65536 characters maximum)
“myString” result:
2;20;0.2;22;102
3;30;0.3;23;103
4;40;0.4;24;104
5;50;0.5;25;105
Prototype
int GatheringDataMultipleLinesGet(
int SocketID,
int IndexPoint,
char * DataBufferLine
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
IndexPoint int Index of an acquired data from the current
gathering buffer.
NbLines int Number of lines to get.
Output parameters
DataBufferLine char * String contains values from the current buffer at
the selected index.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -17: Parameter out of range or incorrect.
• -32: Gathering not configured.
EDH0373En1023 — 01/18 90