如果你对网络编程有兴趣的话,可以从以下内容来学习,想写好程序最基本的方法就是多看,等看明白了,多写,这样自然就成为所谓的高手,不过CPL认为更贴切的应该叫熟练手吧.

转载: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?action=browse&diff=1&id=BoostSocket/References

Difference (from prior major revision) (no other diffs)

Added
* NetClass ? (a multi-platform C++ library which provides a thin wrapper for socket and thread support) http://netclass.sourceforge.net/
* FEDLibrary http://sourceforge.net/projects/fedlibrary/
* C++ Stream Compatible TCP/IP Sockets http://sourceforge.net/projects/cpp-sockets/
Books and Papers

See Overall requirements for a list of some books.

But, Jason, "A C++ Socket Library for Linux: An IPv4/IPv6 ? class-based
sockets C++ library", June 2002, Dr. Dobbs Journal,
http://www.ddj.com/documents/s=7157/ddj0206a/0206a.htm


Tougher, Rob, "Linux Socket Programming In C++", Jan 2002, Linux Gazette,
http://linuxgazette.net/issue74/tougher.html


Tougher, Rob, "A Framework For Writing Application Servers In C++", Jun 2002, Linux Gazette,
http://linuxgazette.net/issue79/tougher.html


Sobczak, Maciej, "An Iostream-Compatible Socket Wrapper", Dec 2001, C/C++ Users Journal,
http://www.cuj.com http://www.maciejsobczak.com/prog/publications.html



Other Socket Libraries

These aren't endorsements, just other libraries that might be mined for ideas.

  • ACE - Adaptive Communication Environment http://www.cs.wustl.edu/~schmidt/ACE.html

  • Common G++ (GNU) Home or Socket Class Reference

  • Socket++ version 1.11 http://www.cs.utexas.edu/users/lavender/courses/socket++/

  • Socket++ version 1.12+ http://members.aon.at/hstraub/linux/socket++/

  • SocketMan?! http://web.media.mit.edu/~kbrussel/SocketMan/

  • Skstream - IOStream based socket library http://www.worldforge.org/dev/eng/libraries/skstream

  • SimpleSocket? - http://home.hetnet.nl/~lcbokkers/simsock.htm

  • PTypes - C++ Portable Types Library (includes multithreading and networking) http://www.melikyan.com/ptypes

  • OpenTransport? - The Classic MacOS? networking API; much different from Sockets, but should be considered during design phase

  • CPPSocket - http://sourceforge.net/projects/cppsocket

  • C++ Sockets Library - http://www.alhem.net/Sockets/

  • socketstream http://socketstream.sourceforge.net/

  • DTILib http://www.dtilib.dk/

  • Qts network module. http://doc.trolltech.com/4.1/qtnetwork.html

  • Poco (C++ Portable Components) has networking code too. http://www.appinf.com/en/products/index.html, http://www.appinf.com/docs/poco/

  • NetClass? (a multi-platform C++ library which provides a thin wrapper for socket and thread support) http://netclass.sourceforge.net/

  • FEDLibrary http://sourceforge.net/projects/fedlibrary/

  • C++ Stream Compatible TCP/IP Sockets http://sourceforge.net/projects/cpp-sockets/

  • Last but not least, Asio. http://asio.sourceforge.net

And just for kicks some JAVA stuff

  • J2EE Socket class reference http://java.sun.com/j2se/1.3/docs/api/java/net/Socket.html

  • JAVA socket programming tutorial http://www.javaworld.com/javaworld/jw-12-1996/jw-12-sockets.html

And for even more kicks Python stuff

  • Twisted http://twistedmatrix.com I would seriously take a look at their design.