]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Able to write data to mailref1
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 21:29:58 +0000 (17:29 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 21:29:58 +0000 (17:29 -0400)
app/feeder.c
lib/gestcp.c
lib/gestcp.h
lib/lvleml.c

index 4b19c4a2c4ae4671b932c36c5abebfc609ff86e3..6293e10a65baa7192ec1eebfe6ef6a8af8a2dd87 100644 (file)
@@ -99,8 +99,8 @@ static int sendout(SOCPTR *socptr,char *line)
 {
 int taille;
 
-taille=tcp_Swrite(socptr,line);
-taille+=tcp_Swrite(socptr,CRLF);
+taille=tcp_write(socptr,line);
+taille+=tcp_write(socptr,CRLF);
 return taille;
 }
 /*
index 79d540cb08fc6297df7c460ff92e26d2af843e4d..7b46c45140de5174fe4fc3d489071fdaa28146d6 100644 (file)
@@ -122,7 +122,7 @@ return got;
 /*      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;
@@ -134,7 +134,6 @@ if (socptr!=(SOCPTR *)0) {
   taille=strlen(buffer);
   if (taille>0) 
     sent=soc_writebuffer(socptr,buffer,taille);
-  (void) rou_alert(0,"JMPDBG Swrite=<%s>",buffer);
   }
 return sent;
 }
@@ -210,7 +209,7 @@ va_start(args,fmt);
 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);
 }
 /*
@@ -270,12 +269,12 @@ while (proceed==true) {
         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);
index dc8b78de2fef2822b5bca20d7987011b30f3c86b..734a60cff76f0eed84910898e5de671bc7aa6174 100644 (file)
@@ -31,7 +31,7 @@ PUBLIC char *tcp_addline(char *buffer,char *line);
 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);
index 40e13809ff973f3617b1826dfc4db805904de8f4..959fa1c24ea4536ec2aa275949b1398000dde0c0 100644 (file)
@@ -138,7 +138,7 @@ if (rou_vasprintf(&line,fmt,args)>0) {
   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);