EXTPORT = 25
TESTITER= 1
-#specific test file to use will "feeding" the receiver.
-ONEFEED=feed02.tst
-
EMLPAR = \
-r $(TESTDIR) \
-c ./conf/$(APPNAME).conf.dvl \
-c ./conf/$(APPNAME).conf.dvl \
$(TESTIP) \
$(TESTPORT) \
- ./$(DATATST)/$(ONEFEED)
+ ./$(DATATST)/$(ONEFEED).tst
onesendr: debug
@ \
tr '\\n' ' ' `
#--------------------------------------------------------------------
+#to Specify FEED
+ONEFEED=$(FEED)
+ifeq ($(strip $(FEED)),)
+ONEFEED=feed02.tst
+endif
break;
case 'S' : //sending data
(void) tcp_write(fd->socptr,line);
+ (void) tcp_write(fd->socptr,CRLF);
break;
case 'T' : //Get the test titre
status=strncpy(testname,line,sizeof(testname));
S:MAIL FROM: <postmaster@example.com>
R:250 2.1.3 postmaster@example.com.. sender ok
S:RCPT TO: <webmaster@example.com>
-R:250 2.6.4 Address accepted
+R:250 2.6.4 Address accepted <webmaster@example.com>
S:RCPT TO: <postmaster@example.com>
-R:250 2.6.4 Address accepted
+R:250 2.6.4 Address accepted <postmaster@example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
max=1000; //purging for 1 seconde max;
count=0;
-/*
for (;count<max;count++) {
soc->carin=0;
soc->carpile[0]='\000';
if (soc->carin==0) //got no character
break;
}
-*/
if (count>=max) //one second max!
(void) rou_alert(0,"%s purge is too long with peer [%s]",OPEP,peerip);
#undef OPEP
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d' carpile=<%s>",OPEP,phase,soc->carpile);
switch (phase) {
case 0 : //is socket available
if (soc==(SOCTYP *)0) {
taille=0;
if (strlen(line)>0) {
- taille=strlen(line)+strlen(CRLF)+2;
+ taille=strlen(line)+strlen(CRLF)+3;
if (buffer==(char *)0)
buffer=(char *)calloc(taille,sizeof(char));
taille+=strlen(buffer);
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ //(void) rou_alert(0,"JMPDBG %s phase='%d' line=<%s>",OPEP,phase,*lineptr);
switch (phase) {
case 0 : //link still open?
if (soc_receive(socptr)<0) {
contact->transout=tcp_addline(contact->transout,line);
}
if (flush==true) {
+ (void) rou_alert(0,"JMPDBG trans=<%s>",contact->transout);
(void) tcp_write(contact->socptr,contact->transout);
contact->transout=rou_freestr(contact->transout);
}