Difference for arch/win32/arch_ip.cpp from version 1.6 to 1.7


version 1.6 version 1.7
Line 11
 
Line 11
 #include "ipx_drv.h"  #include "ipx_drv.h"
 #include "types.h"  #include "types.h"
 #include "mono.h"  #include "mono.h"
   #include "netstats.h"
 //#include "multi.h"  //#include "multi.h"
 }  }
   
Line 89
 
Line 90
  addr.dump();   addr.dump();
  puts(").");   puts(").");
 #endif  #endif
    net_stats_sent(len);
  return sendto(mysock,(char*)buf,len,0,(struct sockaddr *)&toaddr,sizeof(toaddr));   return sendto(mysock,(char*)buf,len,0,(struct sockaddr *)&toaddr,sizeof(toaddr));
 }  }
   
Line 145
 
Line 147
  FAIL("bind() to UDP port %d failed: %m",port);   FAIL("bind() to UDP port %d failed: %m",port);
  }   }
   
    net_stats_init(28); // IP + UDP header overhead = 28 bytes.
   
  return 0;   return 0;
 }  }
 void arch_ip_close_socket(void) {  void arch_ip_close_socket(void) {
Line 168
 
Line 172
  return -1;   return -1;
   
  if (fromaddr.sin_family!=AF_INET) return -1;   if (fromaddr.sin_family!=AF_INET) return -1;
   
    net_stats_recv(size);
   
 #ifdef UDPDEBUG  #ifdef UDPDEBUG
  printf(MSGHDR "recvfrom((%d-2=%d),",size,size-2);   printf(MSGHDR "recvfrom((%d-2=%d),",size,size-2);

Legend:
line(s) removed in v.1.6 
line(s) changed
 line(s) added in v.1.7