- 1、本文档共73页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PART IV Network Applications Chapter 27 The Socket Interface Socket 接口 27.1 Introduction The interface between an application and protocol software. How an application uses protocol software to communication. Set of procedures that an application uses to become a client or a server, to contact a remote destination, or to transfer data. 27.2 Application Program Interface Client and server application use transport protocols to communicate. The interface an application uses when it interacts with transport protocol software is known as an Application Program Interface (API). An API defines a set of operations that an application can perform when interacting with protocol software, the API determines the functionality that is available. 27.3 The Socket API Although protocol standards allow operating system designers to choose an API, many have adopted the Socket API. The Socket API is available for many operating systems. The Socket API originated as part of the BSD Unix operating system. The Socket API is a de facto standard. 27.4 Sockets And Socket Libraries In BSD Unix and the system derived from it,socket functions are part of the operating system itself. In many cases,instead of modifying their basic operating system,vendors created a socket library that provides the Socket API. A socket library can provide applications with a socket API on a computer system that does not provide native sockets. When an application calls one of the socket procedures, control passes to a library routine that makes one or more calls to the underlying operating system to implement the socket function. 27.5 Socket Communication And Unix I/O An application communicates through a socket similar to the way the application transfers data to or from a file. Unix uses an open-read-write-close paradigm for all I/o 补充: 1. Socket API与Unix Unix是一个通用的交互式多用户分时操作系统。 Unix由ATT 公司Bell实验室于1969年开发。 Unix 有两个主要的流派:System V 和 BSD System V 由最初的ATT Unix 演化而来。 BSD Unix 是由加州大学伯克利(Berkeley) 分校开发,其目标是提
文档评论(0)