version 1.3 | | version 1.4 |
---|
| | |
* Routines for IPX communications. | | * Routines for IPX communications. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.4 2003/07/01 03:31:09 donut |
| | * Add netgame bandwidth/packet usage to pause info display. |
| | * |
* Revision 1.3 2003/03/09 06:34:08 donut | | * Revision 1.3 2003/03/09 06:34:08 donut |
* change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
* | | * |
| | |
#include "u_dpmi.h" | | #include "u_dpmi.h" |
#include "key.h" | | #include "key.h" |
#include "ipx_drv.h" | | #include "ipx_drv.h" |
| | #include "netstats.h" |
| | |
typedef unsigned char BYTE; | | typedef unsigned char BYTE; |
typedef unsigned short WORD; | | typedef unsigned short WORD; |
| | |
memcpy( data, packet_buffers[best_id].data, size ); | | memcpy( data, packet_buffers[best_id].data, size ); |
free_packet(best_id); | | free_packet(best_id); |
| | |
| | net_stats_recv(size); |
| | |
return size; | | return size; |
} | | } |
| | |
| | |
// memcpy( packets[0].ipx.destination.network_id, &ipx_network, 4 ); | | // memcpy( packets[0].ipx.destination.network_id, &ipx_network, 4 ); |
memset( packets[0].ipx.destination.network_id, 0, 4 ); | | memset( packets[0].ipx.destination.network_id, 0, 4 ); |
| | |
| | net_stats_init(30); // IPX header overhead = 30 bytes. |
return 0; | | return 0; |
} | | } |
| | |
| | |
| | |
memcpy( packets[0].pd.data, data, datasize ); | | memcpy( packets[0].pd.data, data, datasize ); |
| | |
| | net_stats_sent(datasize); |
// Send it | | // Send it |
ipx_send_packet( &packets[0].ecb ); | | ipx_send_packet( &packets[0].ecb ); |
| | |