//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// // net.h -- Half-Life's interface to the networking layer // For banning IP addresses (or allowing private games) #ifndef NET_H #define NET_H #ifdef _WIN32 #pragma once #endif #include "common.h" #include "bitbuf.h" #include "netadr.h" #include "inetchannel.h" #include "networksystem/inetworksystem.h" class ISteamDatagramTransportClient; // Flow control bytes per second limits: // 16,000 bytes per second = 128kbps // default rate: 192kbytes per second = 1.5mbps // 0.75Mbytes per second = 6mbps #define MIN_RATE 16000 #define DEFAULT_RATE 196608 #define MAX_RATE 786432 #ifdef _GAMECONSOLE #define SIGNON_TIME_OUT 75.0f // signon disconnect timeout #else #define SIGNON_TIME_OUT 300.0f // signon disconnect timeout #endif #define SIGNON_TIME_OUT_360 75.0f #define FRAGMENT_BITS 8 #define FRAGMENT_SIZE (1<