| 1 | = ConnectionMonitor = |
| 2 | |
| 3 | Short description of the module and its functions: |
| 4 | |
| 5 | Next steps: |
| 6 | * Statistics |
| 7 | 1. Implement the network statistics functions for a TCP stream (reliable data connection) |
| 8 | 1. Test the function as soon as NetworkStream passes the data |
| 9 | |
| 10 | {{{ |
| 11 | /* general notes: |
| 12 | - Objects from this class are always referenced by the NetworkStream |
| 13 | */ |
| 14 | |
| 15 | |
| 16 | /* |
| 17 | * This function is called whenever the NetworkStream delivers any data. The pointer |
| 18 | * to the data is passed as a byte reference to this function. |
| 19 | */ |
| 20 | void process(byte* data, int length); |
| 21 | |
| 22 | /* |
| 23 | * This function displays the current statistical analysis of the connection to the STDOUT |
| 24 | */ |
| 25 | void displayStatistic(); |
| 26 | |
| 27 | }}} |