CRPeriod Variable

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
CRPeriod Variable
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. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.