right now i am planning on programming a little server in C/C++. The destination for that software will be some kind of a linux server, so i thought programmin the server on linux would be the best idea. The problem is, that i own a MacBook (Air) and i set up a Linux VM but the IDE (Qt creator) is freaking me out, so that i thought about developing the server within Xcode and then, when finished compiling it within the VM. So i am wondering how high the grade of portability is when it comes to pthread and socket.h? If they are portable to a certain grade would you recommend me to develop in Xcode? (I am a kind of familar with Xcode because the client of the server will be an iOS app. Sorry for my poor english (I’m from GER) and (possibly) thanks for your comment 🙂
Share
You could use a third party library such as
boostthat abstracts away the platform specific details of both the threading library and socket library. Linux and Mac OS X operating systems are both supported by boost.My answer is
c++specific, I see you’ve tagged the question withcas well.