C
union { BYTE * Pos; enum { CR_PERIOD_SEEK_CR = 0, CR_PERIOD_SEEK_LF, CR_PERIOD_SEEK_PERIOD, CR_PERIOD_NEED_INSERTION } State; } CRPeriod;
Description
State machine for the CR LF Period replacement Used by SMTPPut to transparently replace "rn." with "rn.."
Members
Members |
Description |
CR_PERIOD_SEEK_CR = 0 |
Idle state, waiting for 'r |
CR_PERIOD_SEEK_LF |
r" has been written, so check next byte for 'n |
CR_PERIOD_SEEK_PERIOD |
rn" has been written, so check next byte for '. |
CR_PERIOD_NEED_INSERTION |
"rn." has been written, so an additional '.' must be written before the next byte. |