MaxLineLength Property

This property is the size of an internal buffer which holds received data while waiting for an EOL string.

Syntax

ANSI (Cross Platform)
int GetMaxLineLength(int iConnectionId);
int SetMaxLineLength(int iConnectionId, int iMaxLineLength); Unicode (Windows) INT GetMaxLineLength(INT iConnectionId);
INT SetMaxLineLength(INT iConnectionId, INT iMaxLineLength);
- (int)maxLineLength:(int)connectionId;
- (void)setMaxLineLength:(int)connectionId:(int)newMaxLineLength;
#define PID_PIPESERVER_MAXLINELENGTH 8

IPWORKSIPC_EXTERNAL void* IPWORKSIPC_CALL IPWorksIPC_PipeServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSIPC_EXTERNAL int IPWORKSIPC_CALL IPWorksIPC_PipeServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSIPC_EXTERNAL int IPWORKSIPC_CALL IPWorksIPC_PipeServer_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

2048

Remarks

This property is the size of an internal buffer which holds received data while waiting for an EOL string.

If an EOL string is found in the input stream before MaxLineLength bytes are received, the DataIn event is fired with the EOL parameter set to True, and the buffer is reset.

If no EOL is found, and MaxLineLength bytes are accumulated in the buffer, the DataIn event is fired with the EOL parameter set to False, and the buffer is reset.

The minimum value for MaxLineLength is 256 bytes. The default value is 2048 bytes.

The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the ConnectionCount property.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IPC 2020 C++ Edition - Version 20.0 [Build 8155]