| 197 | static ULONG INET_bytes_recv = 0; |
| 198 | |
| 199 | static ULONG inet_debug_timer() |
| 200 | { |
| 201 | /************************************** |
| 202 | * |
| 203 | * i n e t _ d e b u g _ t i m e r |
| 204 | * |
| 205 | ************************************** |
| 206 | * |
| 207 | * Functional description |
| 208 | * Utility function used in DEBUG mode only to put a timestamp |
| 209 | * since start of connection on each debug output message. |
| 210 | * |
| 211 | * This has been implemented and tested on SOLARIS, and may |
| 212 | * need tweeking on any other platform where DEBUG is needed. |
| 213 | * |
| 214 | **************************************/ |
| 215 | #ifdef HAVE_GETTIMEOFDAY |
| 216 | struct timeval tv; |
| 217 | GETTIMEOFDAY(&tv); |
| 218 | return (tv.tv_sec * 1000 + tv.tv_usec - INET_start_time); |
| 219 | #else |
| 220 | struct timeb now; |
| 221 | ftime(&now); |
| 222 | return (now.time * 1000 + now.millitm - INET_start_time); |
| 223 | #endif // HAVE_GETTIMEOFDAY |
| 224 | } |
| 225 | #endif // DEBUG |
| 226 | |
| 227 | const ULONG MAX_DATA_LW = 1448; // Low Water mark |
no outgoing calls
no test coverage detected