The main contents of this chapter include all of the following: Some definitions, sockets, byte ordering, address transformation, byte manipulation functions, information about remote host, socket system calls, connectionless iterative server.
Nội dung trích xuất từ tài liệu:
Lecture TCP-IP protocol suite - Chapter 16: Socket interface Chapter16 Socket InterfaceMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 CONTENTS •SOMEDEFINITIONS •SOCKETS •BYTEORDERING •ADDRESSTRANSFORMATION •BYTEMANIPULATIONFUNCTIONS •INFORMATIONABOUTREMOTEHOST •SOCKETSYSTEMCALLS •CONNECTIONLESSITERATIVESERVERMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 CONTENTS(continued) •UDPCLIENTSERVERPROGRAMS •CONNECTIONORIENTEDCONCURRENT SERVER •TCPCLIENTSERVERPROGRAMSMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 16.1 SOME DEFINITIONSMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure161 Data typesMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure162 Internet address structureMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 16.2 SOCKETSMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure163 Socket addressMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure164 Socket structureMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure165 Socket typesMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 16.3 BYTE ORDERINGMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure166 Big-endian byte orderMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure167 Little-endian byte orderMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 The byte order for the TCP/IP protocol suite is big endian.McGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure168 Bite-order transformationMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure169 Declarations for byte-order transformationMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 16.4 ADDRESS TRANSFORMATIONMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure1610 Address transformationMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000Figure1611 Declarations for address transformation functionsMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000 16.5 BYTE MANIPULATION FUNCTIONSMcGrawHill ©TheMcGrawHillCompanies,Inc.,2000