Difference for arch/dos/arch_ip.cpp from version 1.5 to 1.6


version 1.5 version 1.6
Line 15
 
Line 15
 #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 76
 
Line 77
   sto.port   = *(unsigned short *)(addr.addr+4);    sto.port   = *(unsigned short *)(addr.addr+4);
   memcpy(&sto.address,addr.addr,4);    memcpy(&sto.address,addr.addr,4);
   
     net_stats_sent(len);
   return (socket->Send((char *)buf,len,0,&sto,sizeof(sto)) > 0);    return (socket->Send((char *)buf,len,0,&sto,sizeof(sto)) > 0);
 }  }
   
Line 113
 
Line 115
   
   socket->Bind(&sin,sizeof(InetAddress));    socket->Bind(&sin,sizeof(InetAddress));
   
     net_stats_init(28); // IP + UDP header overhead = 28 bytes.
   
   return 0;    return 0;
 }  }
   
Line 139
 
Line 143
     return -1;      return -1;
    if(sfrm.family != AF_INET)     if(sfrm.family != AF_INET)
     return -1;      return -1;
   
     net_stats_recv(size);
   
   ip_addr tmpip;    ip_addr tmpip;
   

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