View Full Version : TCP/IP Programmin' in Linux
I wanna write a MUD or chat daemon in Linux using C++.
Can one point me in the right direction for TCP/IP programming ?
You could do it using the socket library (sys/socket.h, inet/arpa.h, etc.), but these are all in modular C, which means you would have to write your own wrapper classes.
There are C++ libraries that you can use, which are essentially prebuilt wrapper classes to the socket library--with more functionality and are easier to use. Two of the better choices are to use the CommonC++ library (http://www.gnu.org/software/commonc++/CommonC++.html) or the ADAPTIVE Communication Environment (ACE) library (http://www.cs.wustl.edu/~schmidt/ACE.html). You can buy a book that covers using ACE called C++ Network Programming Volume 1 (http://www.amazon.com/exec/obidos/ASIN/0201604647/qid=1015087949/sr=8-1/ref=sr_8_71_1/002-4453590-3566415), I have a copy and it's a very good book--it covers using ACE, but gives you a really nice overview of the fundamentals of network programming as well.
thanks, stu, I'll take a look at that
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.