display content after info is received
[my-code/ivac.git] / src / ivac.c
index f4f6952..8b9c312 100644 (file)
@@ -184,7 +184,7 @@ int ivac_event_cb(t_event *event,void *ptr) {
     else if(channel==N_E_MAXC)
       sprintf(c_str,"maximum connections reached");
     else {
-      sprintf(c_str,"established connection from %s port %d on channel %d\n",
+      sprintf(c_str,"connection from %s port %d on channel %d",
               ivac->net.connection[channel].ip,
               ivac->net.connection[channel].port,channel);
       ivac_add_to_monitor(ivac,c_str);
@@ -200,6 +200,7 @@ int ivac_event_cb(t_event *event,void *ptr) {
       /* remote is sending info */
       if(FD_ISSET(ivac->net.connection[channel].fd,&(event->rfds)))
         ivac_receive_info(channel,ivac);
+        ivac_display_content(ivac);
     }
   }