2012-04-08 18:19:26 +00:00
|
|
|
#ifndef __readline2_h__
|
|
|
|
#define __readline2_h__
|
|
|
|
|
|
|
|
#ifndef __TCPIP__
|
|
|
|
#include <tcpip.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum {
|
|
|
|
TERMINATOR_CR = 0x0d,
|
|
|
|
TERMINATOR_LF = 0x0a,
|
|
|
|
TERMINATOR_CR_LF = 0x0a0d // byte-swapped.
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct rlBuffer {
|
2012-04-09 01:29:03 +00:00
|
|
|
Handle bufferHandle;
|
|
|
|
LongWord bufferSize;
|
2012-04-08 18:19:26 +00:00
|
|
|
Word terminator;
|
2012-04-09 01:29:03 +00:00
|
|
|
Word moreFlag;
|
2012-04-08 18:19:26 +00:00
|
|
|
} rlBuffer;
|
|
|
|
|
2012-04-10 04:21:12 +00:00
|
|
|
int ReadLine2(Word ipid, rlBuffer *buffer);
|
2012-04-08 18:19:26 +00:00
|
|
|
|
2012-04-10 04:21:12 +00:00
|
|
|
#endif
|