Hello everyone!
Well, I'm currently writing a VOIP server in c++; and recently I've ran into a problem.
I'm having trouble thinking the 'c++ way'. What do I mean by that?
Its hard to explain, but everytime I start coding, I write C-style code. I don't use classes/inheritance/etc because I never seem to know when its the right thing to do, and when not. I have no technical problems (because Ive already written ftp and irc servers in C) but its the object oriented design that gives me headaches.
I looked at tons of server source code, but they all seem to be written in C and not C++ (with the exception of filezilla).
If anyone could point out some tips/links/open source programs, that could help out, Id be greatful
Just for example, I currently have a "server" class, a "user" class, a "header" class (http-like header) and a "config" class. (Probably going to have a socket class aswell, but thinking of using Boost asio instead). And I dont really like it...