http://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543这本书是2014年底出版的,基于最新的python3.4版本。
配书源码链接https://github.com/brandon-rhodes/fopnp目录Chapter1:IntroductiontoClient-ServerNetworkingChapter2:UDPChapter3:TCPChapter4:SocketNamesandDNSChapter5:NetworkDataandNetworkErrorsChapter6:TLS/SSLChapter7:ServerArchitectureChapter8:CachesandMessageQueuesChapter9:HTTPClientsChapter10:HTTPServersChapter11:TheWorldWideWebChapter12:BuildingandParsingE-MailChapter13:SMTPChapter14:POPChapter15:IMAPChapter16:TelnetandSSHChapter17:FTPChapter18:RPCInstead,thisbookfocusesonnetworkprogramming,usingPython3foreveryexamplescriptandsnippetofcodeatthePythonprompt.Theseexamplesareintendedtobuildacomprehensivepictureofhownetworkclients,networkservers,andnetworktoolscanbestbeconstructedfromthetoolsprovidedbythelanguage.ReaderscanstudythetransitionfromPython2toPython3bycomparingthescriptsusedineachchapterofthesecondeditionofthisbookwiththelistingshereinthethirdedition—bothofwhichareavailableathttps://github.com/brandon-rhodes/fopnp/tree/m/thankstotheexcellentApresspolicyofmakingsourcecodeavailableonline.ThegoalineachofthefollowingchaptersissimplytoshowyouhowPython3canbestbeusedtosolvemodernnetworkprogrammingproblems.
1