#include "definitions.h"Include dependency graph for utility.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | utility |
Functions | |
| istring | utility::timestamp (bool add_space=false, bool add_date=false) |
| Returns a string with the current time in hours, min, sec and ms. | |
| byte | utility::byte_checksum (const byte *data, int length) |
| simple byte-sized checksum based on additive roll-over. | |
| u_int | utility::short_checksum (const byte *data, int length) |
| simple shorty checksum based on additive roll-over. | |
| uint16 | utility::fletcher_checksum (const byte *data, int length) |
| A positionally computed error detection value. | |
| uint16 | utility::rolling_fletcher_checksum (uint16 previous, const byte *data, int len) |
| Fletcher checksums applied to streaming data. | |
| unsigned int | utility::bizarre_checksum (const byte *data, int length) |
| A different type of checksum with somewhat unknown properties. | |
| u_int | utility::hash_bytes (const void *key_data, int key_length) |
| returns a value that can be used for indexing into a hash table. | |
| istring | timestamp (bool add_space=false, bool add_date=false) |
| somewhat widely used synonym for timestamp. | |
| istring timestamp | ( | bool | add_space = false, |
|
| bool | add_date = false | |||
| ) |
somewhat widely used synonym for timestamp.
"add_space" causes the stamp to have a space character after the outer bracket. "add_date" causes the stamp to include the current date as part of the stamp.
Definition at line 78 of file utility.cpp.
References utility::timestamp().
Referenced by connection_table::complain_missing_connection(), debugger::create_debug_message(), header_string(), main(), run_test_26(), sockets_complain_dead(), sockets_complain_garbage(), and sockets_complain_reject().
1.5.1