本章專門講解編寫(xiě)成功網(wǎng)絡(luò)應(yīng)用程序時(shí)所需的基本知識(shí)和A P I調(diào)用。通過(guò)上一章的學(xué)習(xí),
大家已知道從Wi n s o c k地址機(jī)和這些機(jī)器上的服務(wù),可以很容易地訪問(wèn)協(xié)議。在這一章里,
我們打算討論如何從網(wǎng)絡(luò)上的一臺(tái)機(jī)器到另一臺(tái)機(jī)器建立連接,以及如何收發(fā)數(shù)據(jù)
本附錄按錯(cuò)誤編號(hào)列出了所有Wi n s o c k錯(cuò)誤代碼。但要注意的是,該列表沒(méi)有包括標(biāo)記為
“B S D特有”的Wi n s o c k錯(cuò)誤,也沒(méi)有包括那些尚未正式列入規(guī)范的錯(cuò)誤。此外,與Wi n 3 2錯(cuò)
誤有著直接對(duì)應(yīng)關(guān)系的Wi n s o c k錯(cuò)誤列在本附錄末尾。
ACM試題Problem K:Ones
Description
Given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1 s. How many digits are in the smallest such a multiple of n?