+ if( !binary_mode )
+ {
+ if ((chunks.size() > 1)&&(var_sep_string.length() == 0))
+ {
+ // ASCII protocols really need a separator when there is more than one chunk per line
+ SG_LOG(SG_IO, SG_ALERT,
+ "generic protocol: Invalid configuration. "
+ "'var_separator' must not be empty for protocols which have more than one chunk per line.");
+ return false;
+ }
+ }
+ else
+ {