资源描述:
《Sam's - Linux Socket Programming》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、BookOrganizationThisbookdelvesintomanyparticularsofnetworkprogramming.Itisorganizedintofivespecificparts,eachpartbuildinguponearlierparts:•PartI:NetworkProgrammingfromtheClientPerspectiveThispartintroducessocketsanddefinesterms.Itdescribesthedifferenttypesofsockets,addressingschemes,andn
2、etworktheory.•PartII:TheServerPerspectiveandLoadControlPartIIexpandssocketprogrammingwithservers,multitaskingtechniques,I/Ocontrol,andsocketoptions.•PartIII:LookingatSocketsObjectivelyCisnottheonlyprogramminglanguagethatprovidesaccesstosockets.Thispartpresentssomeobject-orientedapproache
3、sanddescribestheadvantagesandlimitationsofobjecttechnologyingeneral.•PartIV:AdvancedSockets—AddingValueThispartintroducesthelargerealmofadvancednetworkprogrammingtechniques,includingsecurity,broadcastandmulticasting,IPv6,andrawsockets.•PartV:AppendixesTheappendixesconsolidatemuchoftheres
4、ourcematerialrelevanttosockets.Thefirstappendixincludestablesandlistingstoolargeforthechapters.ThesecondandthirdappendixesdescribetheSocketandKernelAPIs.ThecompanionWebsitecontainsallthesourcecodeforthebookexamples,thebookappendixesinHTMLandAdobe'sPortableDocumentFormat(PDF),andsocketpro
5、gramming–relatedRFCsinHTMLformat.ConventionsUsedinThisBookThefollowingtypographicconventionsareusedinthisbook:•Codelines,commands,statements,variables,andanytextyoutypeorseeonscreenappearsinamonotypeface.Boldmonotypefaceisoftenusedtorepresenttheuser'sinput.•Placeholdersinsyntaxdescriptio
6、nsappearinanitalicmonotypeface.Replacetheplaceholderwiththeactualfilename,parameter,orwhateverelementitrepresents.•Italichighlightstechnicaltermswhenthey'rebeingdefined.•Theåiconisusedbeforealineofcodethatisreallyacontinuationoftheprecedingline.Sometimesalineofcodeistoolongtofitasasingle
7、lineonthepage.Ifyouseeåbeforealineofcode,rememberthatit'spartofthelineimmediatelyaboveit.•ThetextalsoincludesreferencestotheInternetstandardsdocumentscalledRequestsForComment(RFCs).ThereferencecitationsareenclosedinbracketswiththeRFCnumber,forexample[RFC875].1Introducingt