version 1.4 | | version 1.5 |
---|
| | |
* Modem support code | | * Modem support code |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.5 2003/07/01 03:31:09 donut |
| | * Add netgame bandwidth/packet usage to pause info display. |
| | * |
* Revision 1.4 2003/03/09 06:34:10 donut | | * Revision 1.4 2003/03/09 06:34:10 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 "args.h" | | #include "args.h" |
#include "d_io.h" | | #include "d_io.h" |
#include "serial.h" | | #include "serial.h" |
| | #include "netstats.h" |
//#ifndef __LINUX__ | | //#ifndef __LINUX__ |
//#include "nocomlib.h" | | //#include "nocomlib.h" |
//#endif | | //#endif |
| | |
{ | | { |
int i; | | int i; |
| | |
| | net_stats_init(0); |
| | |
// Reset various parameters before starting a new game | | // Reset various parameters before starting a new game |
| | |
N_players = 2; | | N_players = 2; |
| | |
register int count; | | register int count; |
char dat; | | char dat; |
| | |
| | net_stats_sent(len); |
| | |
for (count = 0, dat=ptr[0]; count < len; dat=ptr[++count]) | | for (count = 0, dat=ptr[0]; count < len; dat=ptr[++count]) |
{ | | { |
#ifdef __MSDOS__ | | #ifdef __MSDOS__ |
| | |
{ | | { |
// End of message | | // End of message |
SerialLastMessage = GameTime; | | SerialLastMessage = GameTime; |
| | |
| | net_stats_recv(len); |
| | |
if (!com_check_message(syncbuffer, len)) | | if (!com_check_message(syncbuffer, len)) |
{ | | { |