Difference for main/ipserver.cpp from version 1.1 to 1.2


version 1.1 version 1.2
Line 6
 
Line 6
 #include <stdlib.h>   #include <stdlib.h>
 #include <sys/types.h>   #include <sys/types.h>
 #include <sys/time.h>   #include <sys/time.h>
   #include <signal.h>
    
 #include "ip_base.h"   #include "ip_base.h"
    
   extern "C"{
   #include "error.h"
   #include "args.h"
   #include "u_mem.h"
   }
   
 unsigned char ipx_MyAddress[10];   unsigned char ipx_MyAddress[10];
    
 int ipx_general_PacketReady(int fd) {   int ipx_general_PacketReady(int fd) {
Line 45
 
Line 52
  }    }
 }   }
    
   void int_handler(int s){
    exit(1);
   }
   
 int main(int argc,char **argv){   int main(int argc,char **argv){
    error_init(NULL);
    signal(SIGINT,int_handler);//make ctrl-c do cleanup stuff.
    InitArgs(argc,argv);
   #ifndef NDEBUG
    if ( FindArg( "-showmeminfo" ) )
    show_mem_info = 1;              // Make memory statistics show
   #endif
  myport=UDP_SERV_BASEPORT;    myport=UDP_SERV_BASEPORT;
  if(arch_ip_open_socket(myport))    if(arch_ip_open_socket(myport))
  return 1;    return 1;

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2