{
int taille;
-taille=tcp_Swrite(socptr,line);
-taille+=tcp_Swrite(socptr,CRLF);
+taille=tcp_write(socptr,line);
+taille+=tcp_write(socptr,CRLF);
return taille;
}
/*
/* return the number of char sent on channel. */
/* */
/********************************************************/
-PUBLIC int tcp_Swrite(SOCPTR *socptr,char *buffer)
+PUBLIC int tcp_write(SOCPTR *socptr,char *buffer)
{
int sent;
taille=strlen(buffer);
if (taille>0)
sent=soc_writebuffer(socptr,buffer,taille);
- (void) rou_alert(0,"JMPDBG Swrite=<%s>",buffer);
}
return sent;
}
va_end(args);
(void) log_fprintlog(rmt->logptr,false,strloc);
(void) strcat(strloc,CRLF);
-(void) tcp_Swrite(rmt->socptr,strloc);
+(void) tcp_write(rmt->socptr,strloc);
return tcp_get_smtp_reply(rmt,WAITRMT,resp);
}
/*
if ((strlen(data)>0)&&(data[0]=='.'))
(void) memmove(data,data+1,strlen(data+1));
(void) strcat(data,CRLF);
- sent+=tcp_Swrite(rmt->socptr,data);
+ sent+=tcp_write(rmt->socptr,data);
}
break;
}
case 2 : //end of transmission
- sent+=tcp_Swrite(rmt->socptr,ENDDATA);
+ sent+=tcp_write(rmt->socptr,ENDDATA);
break;
case 3 : //closing datafile
qfile=eml_closeqfile(qfile);
extern int tcp_getline(SOCPTR *socptr,u_int secwait,char **lineptr);
//Transmit formated data to the contact channel
-extern int tcp_Swrite(SOCPTR *socptr,char *buffer);
+extern int tcp_write(SOCPTR *socptr,char *buffer);
//wait and answer from remote and return the reply code
extern int tcp_get_smtp_reply(RMTTYP *rmt,int wait,char ***resp);
contact->transout=tcp_addline(contact->transout,line);
}
if (flush==true) {
- (void) tcp_Swrite(contact->socptr,contact->transout);
+ (void) tcp_write(contact->socptr,contact->transout);
contact->transout=rou_freestr(contact->transout);
}
line=rou_freestr(line);