Start: 8:30
Com Monitor Console:
- r is for carriage return which makes the next line overwrite the previous. If the string is shorter in length it will not clear all the extra characters. Padding the data with zeros helps make sure the string stays the same length. It is important to resize your console to fit the whole line or it will scroll the first line and go back to the beginning of the second line.
- Need to make another class to handle actual communications instead of having it in the monitor class as it is now.
- getch() halts the loop so its not good for user input in this case. I forget which one to use instead.
Notes for ComManager class:
- Init should be moved into this class
- sendData and recieveData should also be moved and changed to accept null pointers and a size. This should be easy on the sending side but I am not sure about the receiving side unless the size is always the same. I will have to see if there is a way to get the size of a incoming package so that the method knows how much its receiving. One possible solution, if nothing else, might be to put the size in the first byte and have two ReadFile calls one to grab the size and the other to grab the remaining data using that size.
- Need to read this tomorrow to get an idea of how calloc is used to make a generic array: http://www.cplusplus.com/reference/clibrary/cstdlib/calloc/
- Need to look up more information on void pointers. They seem to be typeless pure memory and can be cast into anything.
End: 5:00

You can use kbhit(), I think.