Why do this?
Most compilers allow you to compile C and C++ files in the same project (program), at the same time.
Why do this?
Most compilers allow you to compile C and C++ files in the same project (program), at the same time.
As discussed, it depends on how far you want to take it. The difficulty ranges from "renaming the file" (and fixing any compiler errors that crop up) to "making the application entirely object oriented".
One thing that comes to mind is to use the STL containers (e.g. list) instead of using your home-made linked list system.
I don't think there is much point in ONLY replacing malloc with new and free with delete - malloc and free are still valid C++ code as long as there is no need to construct an object from the pointer.
In an ultimate made object oriented, you'd have a packet object and a messagenode object which you can manipulate through member functions. That would be essentially a complete rewrite of the code.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.