1 / 62
文档名称:

NAD-chapter2.pdf

格式:pdf   页数:62
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

NAD-chapter2.pdf

上传人:中国课件站 2011/9/6 文件大小:0 KB

下载得到文件列表

NAD-chapter2.pdf

文档介绍

文档介绍:Chapter 2: Socket Programming
Chapter goal:
„ Program interface to
protocol
„ Socket API
„ Socket programming model
哈工大计算机学院 work Application Development Socket Programming 1
Chapter 2: Socket Programming
Chapter goal:
„ Program interface to
protocol
„ Socket API
„ Socket programming model
哈工大计算机学院 work Application Development Socket Programming 2
Interacting with Protocol
Software
„ Client or server uses transport
protocols
„ Protocol software inside OS
„ Applications outside OS
„ Mechanism needed to bridge the two
„ Called Application Program Interface
(API)
哈工大计算机学院 work Application Development Socket Programming 3
Loosely specified protocol
software interface
„ TCP/IP protocol software is part of the
computer’s system software.
„ TCP/IP was designed to operate in a multi-vendor
environment.
„ TCP/IP does not define details of API
„ The interface between TCP/IP and applications
that use it has been loosely specified.
„ TCP/IP standards do not specify the details of how
application software interfaces with TCP/IP protocol
software
„ They only suggest the required functionality, and allow
system designers to choose the details when creating
an API
哈工大计算机学院 work Application Development Socket Programming 4
Advantages and disadvantages
of Loose specification
„ Advantages:
„ Flexibility and tolerance.
„ Different OS select own implementation.
„ Disadvantages:
„ Designers can make the interface details
different for each OS.
„ Less portable across machines.
„ In practice, only a few APIs have been
developed for use with TCP/IP.
„ Berkeley UNIX: socket interface, or sockets
„ AT&T, System V UNIX: TLI
„ Windows: windows sockets interface, WINSOCK
哈工大计算机学院 work Application Development Socket Programming 5
API functionality
„ API must support:
„ Allocate local resources munication
„ Specify local and munication endpoints
„ Initiate a connection (clien

最近更新

2023年云南国防工业职业技术学院单招职业倾向.. 40页

2023年云南城市建设职业学院单招职业倾向性考.. 41页

2023年云南外事外语职业学院单招职业技能测试.. 41页

2023年云南工程职业学院单招职业技能测试题库.. 40页

2023年云南工贸职业技术学院单招职业技能考试.. 40页

2023年云南新兴职业学院单招职业技能考试题库.. 41页

2023年云南旅游职业学院单招职业适应性测试题.. 40页

2023年云南水利水电职业学院单招职业倾向性考.. 40页

2023年云南特殊教育职业学院单招职业倾向性考.. 40页

2023年云南理工职业学院单招职业倾向性考试题.. 39页

2026年全国交通安全宣传活动方案 42页

2023年云南省保山地区单招职业适应性考试模拟.. 40页

2026年全国乙卷作文 9页

2023年云南省昆明市单招职业适应性测试题库新.. 40页

2023年云南省曲靖市单招职业适应性考试模拟测.. 41页

2023年云南省玉溪市单招职业适应性测试题库汇.. 40页

2023年云南经贸外事职业学院单招职业倾向性考.. 41页

2023年云南能源职业技术学院单招职业倾向性考.. 39页

2023年云南锡业职业技术学院单招职业技能测试.. 41页

2023年仰恩大学单招职业技能考试题库新版 39页

2023年伊春职业学院单招职业技能考试题库最新.. 40页

2026年入的职培训心得体会 16页

2023年佳木斯职业学院单招职业适应性测试题库.. 39页

2023年保定幼儿师范高等专科学校单招职业适应.. 40页

2023年保定理工学院单招职业适应性考试模拟测.. 42页

2023年保定电力职业技术学院单招职业适应性考.. 40页

2023年保险职业学院单招职业倾向性测试题库带.. 41页

2023年信阳职业技术学院单招职业倾向性考试模.. 40页

2023年信阳航空职业学院单招职业倾向性考试题.. 41页

2023年信阳艺术职业学院单招职业倾向性考试题.. 40页